From c89a6681c19909aff42532fcead236ce3a7f08ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 15 Sep 2013 11:51:42 +0200 Subject: [PATCH] Fix broken 2d rotation. --- src/mat_spec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mat_spec.rs b/src/mat_spec.rs index dd05979e..7bf2161d 100644 --- a/src/mat_spec.rs +++ b/src/mat_spec.rs @@ -257,8 +257,8 @@ impl + Add> Mat2MulRhs> for Vec2 { #[inline(always)] fn binop(left: &Mat2, right: &Vec2) -> Vec2 { Vec2::new( - left.m11 * right.x + left.m21 * right.y, - left.m12 * right.x + left.m22 * right.y + left.m11 * right.x + left.m12 * right.y, + left.m21 * right.x + left.m22 * right.y ) } }