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

Function InverseMag

TSVector3D.h:558–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556 /// \related Vector3D
557
558 inline float InverseMag(const Vector3D& v)
559 {
560 return (InverseSqrt(v.x * v.x + v.y * v.y + v.z * v.z));
561 }
562
563 /// \brief Returns the squared magnitude of the 3D vector $v$.
564 /// \related Vector3D

Callers 1

NormalizeFunction · 0.70

Calls 1

InverseSqrtFunction · 0.85

Tested by

no test coverage detected