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

Function vm_DotProduct

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

Does a simple dot product calculation

Source from the content-addressed store, hash-verified

231
232// Does a simple dot product calculation
233float vm_DotProduct(const vector *u, const vector *v) { return (u->x * v->x) + (u->y * v->y) + (u->z * v->z); }
234
235// Scales all components of vector v by value s and stores result in vector d
236// dest can equal source

Callers 15

vm_DeltaAngVecNormFunction · 0.70
RenderSubmodelFaceFoggedFunction · 0.50
RotateModelPointsFunction · 0.50
do_physics_simFunction · 0.50
compute_faces_mappingFunction · 0.50
uvs_matchFunction · 0.50
GetFormFactorForElementFunction · 0.50
CheckCombinePortalsFunction · 0.50
CombineLightFacesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected