Big oops, not all 2x2 matricies are upper/lower triangular.

This commit is contained in:
Luqman Aden 2012-11-07 21:37:41 -05:00
parent f7fb7f7100
commit a76378e83e

View file

@ -157,7 +157,7 @@ pub impl<T:Copy Num NumCast> Mat2<T>: Matrix<T, Vec2<T>, Vec2<T>> {
}
pure fn det() -> T {
self[0][0] * self[1][1]
self[0][0]*self[1][1] - self[1][0]*self[0][1]
}
}