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

Function vm_GetMagnitude

vecmat/vector.cpp:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290float vm_GetMagnitude(vector *a) {
291 float f;
292
293 f = (a->x * a->x) + (a->y * a->y) + (a->z * a->z);
294
295 return (sqrt(f));
296}
297
298void vm_ClearMatrix(matrix *dest) { memset(dest, 0, sizeof(matrix)); }
299

Callers 15

vm_VectorDistanceFunction · 0.70
vm_NormalizeVectorFunction · 0.70
vm_GetCentroidFunction · 0.70
ReadNewModelFileFunction · 0.50
PhysicsDoSimLinearFunction · 0.50
do_physics_simFunction · 0.50
do_walking_simFunction · 0.50
phys_apply_forceFunction · 0.50
ConvertEulerToAxisAmountFunction · 0.50
bump_two_objectsFunction · 0.50
check_vector_to_cylinderFunction · 0.50
SetElementViewFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected