Skip to content

Determinant fix #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
WTF: determinant math computation was broken for a decade and no one …
…except me found and fixed this....
  • Loading branch information
Marco Moeller committed Apr 10, 2019
commit 2e5bbd1f60cfa328e57848498e2bec3122d69f8c
2 changes: 1 addition & 1 deletion src/gov/nasa/worldwind/geom/Matrix.java
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ public final double getDeterminant()
+ this.m24 * (this.m31 * this.m42 - this.m41 * this.m32));
// Columns 1, 2, 3.
result -= this.m14 *
(this.m21 * (this.m32 * this.m43 - this.m42 - this.m33)
(this.m21 * (this.m32 * this.m43 - this.m42 * this.m33)
- this.m22 * (this.m31 * this.m43 - this.m41 * this.m33)
+ this.m23 * (this.m31 * this.m42 - this.m41 * this.m32));
return result;
Expand Down