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

Function Matrix4dTransform

trinity/TriMath.cpp:843–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843Vector4d Matrix4dTransform( Vector4d point, double* mat )
844{
845 return Vector4d(
846 point.x * mat[0] + point.y * mat[4] + point.z * mat[8] + point.w * mat[12],
847 point.x * mat[1] + point.y * mat[5] + point.z * mat[9] + point.w * mat[13],
848 point.x * mat[2] + point.y * mat[6] + point.z * mat[10] + point.w * mat[14],
849 point.x * mat[3] + point.y * mat[7] + point.z * mat[11] + point.w * mat[15] );
850}
851
852
853Matrix Matrix4dToMatrix( double* mat )

Callers 1

UpdatePerObjectDataMethod · 0.85

Calls 1

Vector4dClass · 0.85

Tested by

no test coverage detected