diff --git a/src/integer.rs b/src/integer.rs index ff16b84..a31684f 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -647,9 +647,9 @@ impl Planar64Vec3{ #[inline] pub fn cross(&self,rhs:Self)->Planar64Vec3{ Planar64Vec3(glam::i64vec3( - (((self.0.y as i128)*(rhs.0.y as i128)-(self.0.z as i128)*(rhs.0.z as i128))>>32) as i64, - (((self.0.z as i128)*(rhs.0.z as i128)-(self.0.x as i128)*(rhs.0.x as i128))>>32) as i64, - (((self.0.x as i128)*(rhs.0.x as i128)-(self.0.y as i128)*(rhs.0.y as i128))>>32) as i64, + (((self.0.y as i128)*(rhs.0.z as i128)-(self.0.z as i128)*(rhs.0.y as i128))>>32) as i64, + (((self.0.z as i128)*(rhs.0.x as i128)-(self.0.x as i128)*(rhs.0.z as i128))>>32) as i64, + (((self.0.x as i128)*(rhs.0.y as i128)-(self.0.y as i128)*(rhs.0.x as i128))>>32) as i64, )) } #[inline]