diff --git a/src/mat.rs b/src/mat.rs index cd474f3..6c1af8d 100644 --- a/src/mat.rs +++ b/src/mat.rs @@ -50,16 +50,16 @@ pub trait NumericMatrix_NxN: NumericMatrix { pure fn is_invertible() -> bool; } -pub trait Matrix2: Matrix, Mat2> { +pub trait NumericMatrix2x2: NumericMatrix_NxN> { pure fn to_Mat3() -> Mat3; pure fn to_Mat4() -> Mat4; } -pub trait Matrix3: Matrix, Mat3> { +pub trait NumericMatrix3x3: NumericMatrix_NxN> { pure fn to_Mat4() -> Mat4; } -pub trait Matrix4: Matrix, Mat4> { +pub trait NumericMatrix4x4: NumericMatrix_NxN> { } @@ -237,7 +237,7 @@ pub impl Mat2: NumericMatrix_NxN> { } } -pub impl Mat2: Matrix2 { +pub impl Mat2: NumericMatrix2x2 { #[inline(always)] pure fn to_Mat3() -> Mat3 { Mat3::from_Mat2(&self) @@ -487,7 +487,7 @@ pub impl Mat3: NumericMatrix_NxN> { } } -pub impl Mat3: Matrix3 { +pub impl Mat3: NumericMatrix3x3 { #[inline(always)] pure fn to_Mat4() -> Mat4 { Mat4::from_Mat3(&self) @@ -871,7 +871,7 @@ pub impl Mat4: NumericMatrix_NxN Mat4: Matrix4 { +pub impl Mat4: NumericMatrix4x4 { }