Comments at at Matrix4::Invert

This commit is contained in:
jonschz 2025-07-13 13:30:28 +02:00
parent 8db8a0cfc1
commit 3b0b7dd550

View File

@ -290,6 +290,8 @@ void Matrix4::RotateZ(const float& p_angle)
// FUNCTION: BETA10 0x1005a590
int Matrix4::Invert(Matrix4& p_mat)
{
// Inlined at LEGO1 0x1006b2d3
float copyData[4][4];
Matrix4 copy(copyData);
copy = *this;
@ -312,6 +314,7 @@ int Matrix4::Invert(Matrix4& p_mat)
}
if (copy[i][i] < 0.001f && copy[i][i] > -0.001f) {
// FAILURE from mxtypes.h
return -1;
}
@ -349,6 +352,7 @@ int Matrix4::Invert(Matrix4& p_mat)
}
}
// SUCCESS from mxtypes.h
return 0;
}