diff options
Diffstat (limited to 'src/calculus.rs')
-rw-r--r-- | src/calculus.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, } |