Community
Participate
Working Groups
I am not sure, but I think the Math3DMatrix4f#determinant(IMatrix4f) method is wrong. It does not seem to develop the determinant after row 1, as it says in the comment. The determinants of the the comatrices are wrong (they seem to be calculated by the Sarrus method for 2x2 matrices instead of 3x3).
Added long documentation on how the determinant is calculated, also implemented some tests. Seems as if everything works correctly. Renamed the local variables (and changed some signs) to make the algorithm clearer, however it worked correctly. (I suggest to add a price for this bug: a cocktail at Becketts Kopf, what you think ;-) )