diff --git a/citro3d/src/math/matrix.rs b/citro3d/src/math/matrix.rs index b498f66..aac8612 100644 --- a/citro3d/src/math/matrix.rs +++ b/citro3d/src/math/matrix.rs @@ -183,12 +183,6 @@ impl core::fmt::Debug for Matrix4 { f.debug_tuple("Matrix4").field(&self.rows_wzyx()).finish() } } -impl PartialEq for Matrix4 { - fn eq(&self, other: &Matrix4) -> bool { - self.rows_wzyx() == other.rows_wzyx() - } -} -impl Eq for Matrix4 {} #[cfg(feature = "glam")] impl From for Matrix4 { diff --git a/citro3d/src/math/ops.rs b/citro3d/src/math/ops.rs index ce962fc..3807a08 100644 --- a/citro3d/src/math/ops.rs +++ b/citro3d/src/math/ops.rs @@ -190,6 +190,12 @@ impl Mul for &Matrix4 { } } +impl PartialEq for Matrix4 { + fn eq(&self, other: &Matrix4) -> bool { + self.rows_wzyx() == other.rows_wzyx() + } +} + // endregion #[cfg(feature = "approx")]