mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-19 22:31:15 +00:00
Comments at at Matrix4::Invert
This commit is contained in:
parent
8db8a0cfc1
commit
3b0b7dd550
@ -290,6 +290,8 @@ void Matrix4::RotateZ(const float& p_angle)
|
|||||||
// FUNCTION: BETA10 0x1005a590
|
// FUNCTION: BETA10 0x1005a590
|
||||||
int Matrix4::Invert(Matrix4& p_mat)
|
int Matrix4::Invert(Matrix4& p_mat)
|
||||||
{
|
{
|
||||||
|
// Inlined at LEGO1 0x1006b2d3
|
||||||
|
|
||||||
float copyData[4][4];
|
float copyData[4][4];
|
||||||
Matrix4 copy(copyData);
|
Matrix4 copy(copyData);
|
||||||
copy = *this;
|
copy = *this;
|
||||||
@ -312,6 +314,7 @@ int Matrix4::Invert(Matrix4& p_mat)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (copy[i][i] < 0.001f && copy[i][i] > -0.001f) {
|
if (copy[i][i] < 0.001f && copy[i][i] > -0.001f) {
|
||||||
|
// FAILURE from mxtypes.h
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -349,6 +352,7 @@ int Matrix4::Invert(Matrix4& p_mat)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SUCCESS from mxtypes.h
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user