Skip to content

Commit dc07007

Browse files
committed
fix: resolve all MoonBit compiler warnings
1 parent 318e969 commit dc07007

3 files changed

Lines changed: 164 additions & 157 deletions

File tree

src/lib/lib.mbti

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Generated using `moon info`, DON'T EDIT IT
2+
package "tiye/quaternion/lib"
3+
4+
// Values
5+
fn from_wxyz(Array[Float]) -> Quaternion raise QuatError
6+
7+
fn from_xyzw_array(Array[Float]) -> Quaternion raise QuatError
8+
9+
let max_value : Float
10+
11+
fn q(Float, Float, Float, Float) -> Quaternion
12+
13+
fn qi(Int, Int, Int, Int) -> Quaternion
14+
15+
// Errors
16+
pub(all) suberror QuatError String
17+
18+
// Types and methods
19+
pub(all) struct Quaternion {
20+
mut w : Float
21+
mut x : Float
22+
mut y : Float
23+
mut z : Float
24+
}
25+
fn Quaternion::conjugate(Self) -> Self
26+
fn Quaternion::conjugate_mut(Self) -> Unit
27+
fn Quaternion::dot(Self, Self) -> Float
28+
fn Quaternion::from_euler_angles(Float, Float, Float) -> Self
29+
fn Quaternion::id() -> Self
30+
fn Quaternion::inverse(Self) -> Self
31+
fn Quaternion::inverse_mut(Self) -> Unit
32+
fn Quaternion::length(Self) -> Float
33+
fn Quaternion::new(w? : Float, x? : Float, y? : Float, z? : Float) -> Self
34+
fn Quaternion::normalize(Self) -> Self
35+
fn Quaternion::normalize_mut(Self) -> Unit raise QuatError
36+
fn Quaternion::op_add_assign(Self, Self) -> Unit
37+
fn Quaternion::op_eq(Self, Self) -> Bool
38+
fn Quaternion::op_mul_assign(Self, Self) -> Unit
39+
fn Quaternion::op_neg(Self) -> Self
40+
fn Quaternion::op_sub_assign(Self, Self) -> Unit
41+
fn Quaternion::roughly_eq(Self, Self, epsilon? : Float) -> Bool
42+
fn Quaternion::scale(Self, Float) -> Self
43+
fn Quaternion::scale_mut(Self, Float) -> Unit
44+
fn Quaternion::square_length(Self) -> Float
45+
fn Quaternion::to_string(Self) -> String
46+
fn Quaternion::to_wxyz(Self) -> Array[Float]
47+
fn Quaternion::to_xyzw(Self) -> Array[Float]
48+
impl Add for Quaternion
49+
impl Default for Quaternion
50+
impl Div for Quaternion
51+
impl Eq for Quaternion
52+
impl Mul for Quaternion
53+
impl Show for Quaternion
54+
impl Sub for Quaternion
55+
56+
// Type aliases
57+
58+
// Traits
59+

0 commit comments

Comments
 (0)