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

Function TriMatrixCopyFrom3x4

trinity/Utilities/MatrixUtils.cpp:54–69  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Copies a matrix from granny-typical 3x4 to dx-typical 4x4 Arguments: out - return 4x4 matrix in - input 3x4 matrix SeeAlso: Matrix, granny_matrix_3x4 --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

52// Matrix, granny_matrix_3x4
53// --------------------------------------------------------------------------------
54Matrix* TriMatrixCopyFrom3x4( Matrix* out, const granny_matrix_3x4* in )
55{
56 out->_11 = ( *in )[0][0];
57 out->_21 = ( *in )[0][1];
58 out->_31 = ( *in )[0][2];
59 out->_41 = ( *in )[0][3];
60 out->_12 = ( *in )[1][0];
61 out->_22 = ( *in )[1][1];
62 out->_32 = ( *in )[1][2];
63 out->_42 = ( *in )[1][3];
64 out->_13 = ( *in )[2][0];
65 out->_23 = ( *in )[2][1];
66 out->_33 = ( *in )[2][2];
67 out->_43 = ( *in )[2][3];
68 return out;
69}
70#endif
71
72// --------------------------------------------------------------------------------

Callers 15

SetBoneMatrixMethod · 0.85
RenderDebugInfoMethod · 0.85
RenderDebugInfoMethod · 0.85
RenderDebugInfoMethod · 0.85
GetItemSetAabbFunction · 0.85
TransformLocatorFunction · 0.85
RenderDebugInfoMethod · 0.85
UpdateSyncronousMethod · 0.85
SetBoneMatrixMethod · 0.85
UpdateLightsMethod · 0.85
AddToQuadRendererMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected