Skip to content

Commit 1b80e41

Browse files
committed
ignore mbti file; moon fmt
1 parent 2aaacef commit 1b80e41

4 files changed

Lines changed: 11 additions & 63 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
target/
22
.mooncakes/
33
.DS_Store
4+
5+
*.mbti
6+
.moonagent

src/lib/euler.mbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
///| Construct a quaternion representing the given euler angle rotations (in radians)
1+
///|
2+
/// Construct a quaternion representing the given euler angle rotations (in radians)
23
/// Notice: this function is not well tested yet
34
pub fn Quaternion::from_euler_angles(
45
x : Float,

src/lib/lib.mbti

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/lib/quaternion.mbt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
///| Quaternion {w, x, y, z}
1+
///|
2+
/// Quaternion {w, x, y, z}
23
pub(all) struct Quaternion {
34
mut w : Float
45
mut x : Float
@@ -685,7 +686,8 @@ pub fn from_wxyz(arr : Array[Float]) -> Quaternion raise QuatError {
685686
Quaternion::{ w: arr[0], x: arr[1], y: arr[2], z: arr[3] }
686687
}
687688
688-
///| from_xyzw_array
689+
///|
690+
/// from_xyzw_array
689691
pub fn from_xyzw_array(arr : Array[Float]) -> Quaternion raise QuatError {
690692
if arr.length() != 4 {
691693
raise QuatError("Array must have 4 elements")
@@ -702,7 +704,8 @@ pub fn Quaternion::normalize(self : Quaternion) -> Quaternion {
702704
self.scale(1.0.to_float() / len)
703705
}
704706
705-
///| normalize mutable
707+
///|
708+
/// normalize mutable
706709
pub fn Quaternion::normalize_mut(self : Quaternion) -> Unit raise QuatError {
707710
let len = self.length()
708711
if len == 0.0 {

0 commit comments

Comments
 (0)