Skip to content

Commit

Permalink
maybe fixed matrix determinant
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanderveen committed Feb 9, 2012
1 parent 853ebd8 commit 6d52a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/math.c
Expand Up @@ -14,7 +14,7 @@ SimQuat SimQuatMakeWithAngle(SimUnit angle, Sim3Vector unitVector) {
}

SimUnit SimMatrixDeterminant(SimMatrix m) {
return m.m0 * (m.m8 * m.m4 - m.m7 * m.m5) - m.m3 * (m.m8 * m.m1 - m.m7 * m.m2) + m.m6 * (m.m5 * m.m1 - m.m4 * m.m3);
return m.m0 * (m.m8 * m.m4 - m.m7 * m.m5) + m.m1 * (m.m5 * m.m6 - m.m8 * m.m3) + m.m2 * (m.m3 * m.m7 - m.m4 * m.m6);
}

SimMatrix SimMatrixMultScalar(SimMatrix m, SimUnit k) {
Expand Down

0 comments on commit 6d52a2e

Please sign in to comment.