diff --git a/src/mat.rs b/src/mat.rs index 826210d..6e57590 100644 --- a/src/mat.rs +++ b/src/mat.rs @@ -327,7 +327,8 @@ pub impl Mat2: NumericMatrix2x2> { pub impl Mat2: Eq { #[inline(always)] pure fn eq(&self, other: &Mat2) -> bool { - self.default_eq(other) + self[0] == other[0] && + self[1] == other[1] } #[inline(always)] @@ -621,7 +622,9 @@ pub impl Mat3: ToQuat { pub impl Mat3: Eq { #[inline(always)] pure fn eq(&self, other: &Mat3) -> bool { - self.default_eq(other) + self[0] == other[0] && + self[1] == other[1] && + self[2] == other[2] } #[inline(always)] @@ -965,7 +968,10 @@ pub impl Mat4: NumericMatrix4x4> { pub impl Mat4: Eq { #[inline(always)] pure fn eq(&self, other: &Mat4) -> bool { - self.default_eq(other) + self[0] == other[0] && + self[1] == other[1] && + self[2] == other[2] && + self[3] == other[3] } #[inline(always)]