From 2ad227661a9a79a95e5b36e14eacb2228314a1b4 Mon Sep 17 00:00:00 2001 From: Nil Goyette Date: Wed, 17 Jan 2018 11:23:27 -0500 Subject: [PATCH] Fix RowVector3 cross product --- src/core/matrix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/matrix.rs b/src/core/matrix.rs index 4b1f7deb..e29eff72 100644 --- a/src/core/matrix.rs +++ b/src/core/matrix.rs @@ -879,7 +879,7 @@ impl> Matrix { *res.get_unchecked_mut(0, 0) = ay * bz - az * by; *res.get_unchecked_mut(0, 1) = az * bx - ax * bz; - *res.get_unchecked_mut(0, 2) = az * bx - ax * bz; + *res.get_unchecked_mut(0, 2) = ax * by - ay * bx; res }