From 9669b7bccca4be9a666b13088ab3c944362d5a36 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Fri, 7 Dec 2012 14:16:28 +1000 Subject: [PATCH] Fix to_mat3 method --- src/quat.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/quat.rs b/src/quat.rs index bb1f1d0..dfd0533 100644 --- a/src/quat.rs +++ b/src/quat.rs @@ -413,9 +413,9 @@ pub impl Quat: Quaternion> { let _1: T = Number::from(1); - Mat3::new(_1 - yy2 - zz2, xy2 - sz2, xz2 + sy2, - xy2 + sz2, _1 - xx2 - zz2, yz2 - sx2, - xz2 - sy2, yz2 + sx2, _1 - xx2 - yy2) + Mat3::new(_1 - yy2 - zz2, xy2 + sz2, xz2 - sy2, + xy2 - sz2, _1 - xx2 - zz2, yz2 + sx2, + xz2 + sy2, yz2 - sx2, _1 - xx2 - yy2) } #[inline(always)]