Skip to content

Commit

Permalink
libcore|Matrix: Calculating matrix inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent e83fd47 commit 8436e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/libs/core/src/matrix.cpp
Expand Up @@ -13,7 +13,7 @@
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details. You should have received a copy of
* the GNU Lesser General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
* http://www.gnu.org/licenses</small>
*/

#include "de/Matrix"
Expand Down Expand Up @@ -110,7 +110,7 @@ bool Matrix4_InverseT(Type *out16, Type const *in16)
{
Type det = Matrix4_DeterminantT(in16);

if (de::abs(det) < .0005f)
if (de::abs(det) < .000001f) // .0005f)
{
Matrix4<Type> identity;
identity.data().get(0, reinterpret_cast<IByteArray::Byte *>(out16),
Expand Down

0 comments on commit 8436e66

Please sign in to comment.