From d1909a30fbe458286e8a4cff86951773a3c64e68 Mon Sep 17 00:00:00 2001 From: Rosyid Haryadi Date: Mon, 3 Mar 2025 11:59:00 +0700 Subject: fix cross product & upd readme --- src/calculus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calculus.rs') diff --git a/src/calculus.rs b/src/calculus.rs index 2e8a1d5..e59ae56 100644 --- a/src/calculus.rs +++ b/src/calculus.rs @@ -91,7 +91,7 @@ pub mod calculus { pub fn cross_prod(&self, other: &Self) -> Self { Self { - x: self.y * other.z - self.z - other.y, + x: self.y * other.z - self.z * other.y, y: self.z * other.x - self.x * other.z, z: self.x * other.y - self.y * other.x, } -- cgit v1.2.3-70-g09d2