summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-03 11:59:00 +0700
committerRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-03 11:59:00 +0700
commitd1909a30fbe458286e8a4cff86951773a3c64e68 (patch)
tree41578a82114e4a00a6df2b7f1b6a374911ddb1f2
parent3fe52d7b88f1e99bcffc5ea31e3e2cf9fcacec6d (diff)
fix cross product & upd readme
-rw-r--r--img/output.pngbin83203 -> 109437 bytes
-rw-r--r--src/calculus.rs2
2 files changed, 1 insertions, 1 deletions
diff --git a/img/output.png b/img/output.png
index 49ef003..9d1fbd8 100644
--- a/img/output.png
+++ b/img/output.png
Binary files differ
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,
}