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

Function vm_AnglesToMatrix

vecmat/vector.cpp:516–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516void vm_AnglesToMatrix(matrix *m, angle p, angle h, angle b) {
517 float sinp, cosp, sinb, cosb, sinh, cosh;
518
519 sinp = FixSin(p);
520 cosp = FixCos(p);
521 sinb = FixSin(b);
522 cosb = FixCos(b);
523 sinh = FixSin(h);
524 cosh = FixCos(h);
525
526 vm_SinCosToMatrix(m, sinp, cosp, sinb, cosb, sinh, cosh);
527}
528
529// Computes a matrix from a vector and and angle of rotation around that vector
530// Parameters: m - filled in with the computed matrix

Callers 15

g3_DrawRotatedBitmapFunction · 0.50
g3_StartInstanceAnglesFunction · 0.50
GetPolyModelPointInWorldFunction · 0.50
RenderSubmodelFunction · 0.50
ComputeDefaultSizeFuncFunction · 0.50
DoPhysLinkedFrameFunction · 0.50
PhysCalcGroundFunction · 0.50
PhysicsDoSimRotFunction · 0.50
PolyCollideObjectFunction · 0.50

Calls 3

vm_SinCosToMatrixFunction · 0.70
FixSinFunction · 0.50
FixCosFunction · 0.50

Tested by

no test coverage detected