Big oops, not all 2x2 matricies are upper/lower triangular.
This commit is contained in:
parent
f7fb7f7100
commit
a76378e83e
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue