Fix broken 2d rotation.

This commit is contained in:
Sébastien Crozet 2013-09-15 11:51:42 +02:00
parent 6dc8139794
commit c89a6681c1
1 changed files with 2 additions and 2 deletions

View File

@ -257,8 +257,8 @@ impl<N: Mul<N, N> + Add<N, N>> Mat2MulRhs<N, Vec2<N>> for Vec2<N> {
#[inline(always)]
fn binop(left: &Mat2<N>, right: &Vec2<N>) -> Vec2<N> {
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
)
}
}