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]