From a41cbb79de411c900493950707e2d34b1b0a91ce Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 15 Nov 2023 22:24:56 -0800 Subject: [PATCH] move mat mul to above mat div --- src/integer.rs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/integer.rs b/src/integer.rs index 4bf2a36..6c416ee 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -834,16 +834,6 @@ impl Default for Planar64Mat3{ } } } -impl std::ops::Mul for Planar64Mat3{ - type Output=Planar64Vec3; - #[inline] - fn mul(self,rhs:Planar64Vec3) -> Self::Output { - self.x_axis*rhs.x() - +self.y_axis*rhs.y() - +self.z_axis*rhs.z() - } -} - impl Planar64Mat3{ #[inline] pub fn from_cols(x_axis:Planar64Vec3,y_axis:Planar64Vec3,z_axis:Planar64Vec3)->Self{ @@ -956,6 +946,15 @@ impl std::fmt::Display for Planar64Mat3{ ) } } +impl std::ops::Mul for Planar64Mat3{ + type Output=Planar64Vec3; + #[inline] + fn mul(self,rhs:Planar64Vec3) -> Self::Output { + self.x_axis*rhs.x() + +self.y_axis*rhs.y() + +self.z_axis*rhs.z() + } +} impl std::ops::Div for Planar64Mat3{ type Output=Planar64Mat3; #[inline]