From 2d14e8ac8e0b9860bf833a12f5cfc35c573d5648 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 8 Nov 2023 16:45:13 -0800 Subject: [PATCH] =?UTF-8?q?cross=20product=20was=20wrong=20=F0=9F=92=80x7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/integer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]