Skip to content

Commit 1355b5b

Browse files
committed
Fix Matrix3x3#getDeterminant
1 parent f407ed4 commit 1355b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/spout/physics/math/Matrix3x3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public Matrix3x3 getTranspose() {
236236
public float getDeterminant() {
237237
return mRows[0].get(0) * (mRows[1].get(1) * mRows[2].get(2) - mRows[2].get(1) * mRows[1].get(2))
238238
- mRows[0].get(1) * (mRows[1].get(0) * mRows[2].get(2) - mRows[2].get(0) * mRows[1].get(2))
239-
+ mRows[0].get(2) * (mRows[1].get(0) * mRows[2].get(1) - mRows[2].get(0) * mRows[1].get(0));
239+
+ mRows[0].get(2) * (mRows[1].get(0) * mRows[2].get(1) - mRows[2].get(0) * mRows[1].get(1));
240240
}
241241

242242
/**

0 commit comments

Comments
 (0)