Rotate a unit vector aligned to one of the axes (defined by xyz) by the matrix
| 129 | //Rotate a unit vector aligned to one of the axes |
| 130 | //(defined by xyz) by the matrix |
| 131 | Vector3* TriVectorRotatedBasisMatrix( |
| 132 | Vector3* out, |
| 133 | const TRITRANSFORMAXIS xyz, |
| 134 | const Matrix* m ) |
| 135 | { |
| 136 | *out = Vector3( m->m[xyz][0], m->m[xyz][1], m->m[xyz][2] ); |
| 137 | return out; |
| 138 | } |
| 139 | |
| 140 | Vector3* TriVectorSpherical( |
| 141 | Vector3* v, |
no test coverage detected