Skip to content

Commit 2e5bbd1

Browse files
author
Marco Moeller
committed
WTF: determinant math computation was broken for a decade and no one except me found and fixed this....
1 parent 86454fa commit 2e5bbd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gov/nasa/worldwind/geom/Matrix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ public final double getDeterminant()
20612061
+ this.m24 * (this.m31 * this.m42 - this.m41 * this.m32));
20622062
// Columns 1, 2, 3.
20632063
result -= this.m14 *
2064-
(this.m21 * (this.m32 * this.m43 - this.m42 - this.m33)
2064+
(this.m21 * (this.m32 * this.m43 - this.m42 * this.m33)
20652065
- this.m22 * (this.m31 * this.m43 - this.m41 * this.m33)
20662066
+ this.m23 * (this.m31 * this.m42 - this.m41 * this.m32));
20672067
return result;

0 commit comments

Comments
 (0)