MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / InverseMag

Function InverseMag

TSVector4D.h:439–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 /// \related Vector4D
438
439 inline float InverseMag(const Vector4D& v)
440 {
441 return (InverseSqrt(v.x * v.x + v.y * v.y + v.z * v.z + v.w * v.w));
442 }
443
444 /// \brief Returns the squared magnitude of the 4D vector $v$.
445 /// \related Vector4D

Callers 5

Dipole3DClass · 0.70
NormalizeFunction · 0.70
Line3DClass · 0.70
Motor3DClass · 0.70
UnitizeFunction · 0.70

Calls 1

InverseSqrtFunction · 0.85

Tested by

no test coverage detected