MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetDeterminant

Method GetDeterminant

Source/Engine/Core/Math/Matrix.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43float Matrix::GetDeterminant() const
44{
45 const float temp1 = M33 * M44 - M34 * M43;
46 const float temp2 = M32 * M44 - M34 * M42;
47 const float temp3 = M32 * M43 - M33 * M42;
48 const float temp4 = M31 * M44 - M34 * M41;
49 const float temp5 = M31 * M43 - M33 * M41;
50 const float temp6 = M31 * M42 - M32 * M41;
51 return M11 * (M22 * temp1 - M23 * temp2 + M24 * temp3) - M12 * (M21 * temp1 -M23 * temp4 + M24 * temp5) + M13 * (M21 * temp2 - M22 * temp4 + M24 * temp6) - M14 * (M21 * temp3 - M22 * temp5 + M23 * temp6);
52}
53
54float Matrix::RotDeterminant() const
55{

Callers 1

SearchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected