diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2025-03-03 11:59:00 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2025-03-03 11:59:00 +0700 |
commit | d1909a30fbe458286e8a4cff86951773a3c64e68 (patch) | |
tree | 41578a82114e4a00a6df2b7f1b6a374911ddb1f2 | |
parent | 3fe52d7b88f1e99bcffc5ea31e3e2cf9fcacec6d (diff) |
fix cross product & upd readme
-rw-r--r-- | img/output.png | bin | 83203 -> 109437 bytes | |||
-rw-r--r-- | src/calculus.rs | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/img/output.png b/img/output.png Binary files differindex 49ef003..9d1fbd8 100644 --- a/img/output.png +++ b/img/output.png 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, } |