| 323 | } |
| 324 | |
| 325 | void vm_MatrixMulVector(vector *result, vector *v, matrix *m) { |
| 326 | // Rotates a vector thru a matrix |
| 327 | |
| 328 | assert(result != v); |
| 329 | |
| 330 | result->x = *v * m->rvec; |
| 331 | result->y = *v * m->uvec; |
| 332 | result->z = *v * m->fvec; |
| 333 | } |
| 334 | |
| 335 | // Multiply a vector times the transpose of a matrix |
| 336 | void vm_VectorMulTMatrix(vector *result, vector *v, matrix *m) { |
no outgoing calls
no test coverage detected