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

Function InverseMag

TSQuaternion.h:497–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495 /// \related Quaternion
496
497 inline float InverseMag(const Quaternion& q)
498 {
499 return (InverseSqrt(SquaredMag(q.xyz) + q.w * q.w));
500 }
501
502 /// \brief Returns the squared magnitude of a quaternion.
503 /// \related Quaternion

Callers

nothing calls this directly

Calls 2

InverseSqrtFunction · 0.85
SquaredMagFunction · 0.70

Tested by

no test coverage detected