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

Function vm_MakeIdentity

vecmat/vector.cpp:300–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298void vm_ClearMatrix(matrix *dest) { memset(dest, 0, sizeof(matrix)); }
299
300void vm_MakeIdentity(matrix *dest) {
301 memset(dest, 0, sizeof(matrix));
302 dest->rvec.x = dest->uvec.y = dest->fvec.z = 1.0;
303}
304void vm_MakeInverseMatrix(matrix *dest) {
305 memset((void *)dest, 0, sizeof(matrix));
306 dest->rvec.x = dest->uvec.y = dest->fvec.z = -1.0;

Callers 15

g3_StartInstanceAnglesFunction · 0.50
ReadNewModelFileFunction · 0.50
UpdateRobotViewMethod · 0.50
DrawDoorwayDoorPicMethod · 0.50
UpdateWeaponViewMethod · 0.50
UpdateDoorViewMethod · 0.50
UpdateAnimStateViewMethod · 0.50
ResetWireframeViewFunction · 0.50
UpdateObjectViewMethod · 0.50
BuildObjectLightmapUVsFunction · 0.50
UpdateShipViewMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected