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

Function vm_SubVectors

vecmat/vector.cpp:177–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void vm_SubVectors(vector *result, const vector *a, const vector *b) {
178 // Subtracts second vector from first. Either source can equal dest
179
180 result->x = a->x - b->x;
181 result->y = a->y - b->y;
182 result->z = a->z - b->z;
183}
184
185float vm_VectorDistance(const vector *a, const vector *b) {
186 // Given two vectors, returns the distance between them

Callers 7

vm_VectorDistanceFunction · 0.70
vm_VectorDistanceQuickFunction · 0.70
vm_GetPerpFunction · 0.70
vm_GetNormalizedDirFunction · 0.70
vm_GetNormalizedDirFastFunction · 0.70
SetModelInterpPosFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected