-------------------------------------------------------------------------------- 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 --------------------------------------------------------------------------------
| 52 | // Matrix, granny_matrix_3x4 |
| 53 | // -------------------------------------------------------------------------------- |
| 54 | Matrix* 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 | // -------------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected