MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / vm_MatrixMulVector

Function vm_MatrixMulVector

vecmat/vector.cpp:325–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void 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
336void vm_VectorMulTMatrix(vector *result, vector *v, matrix *m) {

Callers 15

g3_DrawRotatedBitmapFunction · 0.50
StartLightInstanceFunction · 0.50
phys_apply_forceFunction · 0.50
GetUVLForRoomPointFunction · 0.50
OnCreateVolumeConeMethod · 0.50
OnEdgeVolumetricMethod · 0.50
MoveSatMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected