MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / addMatrix

Method addMatrix

COLLADAStreamWriter/src/COLLADASWNode.cpp:114–128  ·  view source on GitHub ↗

---------------------------------------------------------------

Source from the content-addressed store, hash-verified

112
113 //---------------------------------------------------------------
114 void Node::addMatrix ( const String &sid, double matrix[4][4] ) const
115 {
116 mSW->openElement ( CSWC::CSW_ELEMENT_MATRIX );
117
118 if ( !sid.empty() )
119 mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_SID, sid );
120
121 mSW->appendValues ( matrix[0][0], matrix[0][1], matrix[0][2], matrix[0][3] );
122 mSW->appendValues ( matrix[1][0], matrix[1][1], matrix[1][2], matrix[1][3] );
123 mSW->appendValues ( matrix[2][0], matrix[2][1], matrix[2][2], matrix[2][3] );
124 mSW->appendValues ( matrix[3][0], matrix[3][1], matrix[3][2], matrix[3][3] );
125
126 mSW->closeElement();
127
128 }
129
130 //---------------------------------------------------------------
131 void Node::addMatrix ( double matrix[4][4] ) const

Callers 3

doExportMethod · 0.80
exportTransformationsMethod · 0.80
exportMatrixTransformMethod · 0.80

Calls 5

openElementMethod · 0.80
emptyMethod · 0.45
appendAttributeMethod · 0.45
appendValuesMethod · 0.45
closeElementMethod · 0.45

Tested by

no test coverage detected