MCPcopy Create free account
hub / github.com/carbonengine/trinity / Matrix4dToMatrix

Function Matrix4dToMatrix

trinity/TriMath.cpp:853–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851
852
853Matrix Matrix4dToMatrix( double* mat )
854{
855 Matrix m;
856 for( int r = 0; r < 4; r++ )
857 {
858 for( int c = 0; c < 4; c++ )
859 {
860 m.m[r][c] = (float)mat[r * 4 + c];
861 }
862 }
863 return m;
864}
865
866
867double* Matrix4dFromMatrix( double* result, const Matrix& mat )

Callers 1

UpdatePerObjectDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected