Fixed inversion error.

This commit is contained in:
Tristan Campbell 2002-10-28 20:01:26 +00:00
parent b161ad781a
commit 8e31225b1c
2 changed files with 2 additions and 18 deletions

View File

@ -371,15 +371,7 @@ public class Matrix3f extends Matrix {
+ m01 * (m12 * m20 - m10 * m22)
+ m02 * (m10 * m21 - m11 * m20);
if (determinant == 1)
// matrix is proper orthogonal
transpose();
else if (determinant == -1)
{ // matrix is improper orthogonal
transpose();
negate();
}
else if (determinant != 0)
if (determinant != 0)
{
// do it the ordinary way

View File

@ -575,15 +575,7 @@ public class Matrix4f extends Matrix {
float determinant = determinant();
if (determinant == 1)
// proper orthogonal
transpose();
else if (determinant == -1)
{ // improper orthogonal
transpose();
negate();
}
else if (determinant != 0)
if (determinant != 0)
{
/*
m00 m01 m02 m03