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

Function InverseMag

TSVector2D.h:446–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 /// \related Vector2D
445
446 inline float InverseMag(const Vector2D& v)
447 {
448 return (InverseSqrt(v.x * v.x + v.y * v.y));
449 }
450
451 /// \brief Returns the squared magnitude of the 2D vector $v$.
452 /// \related Vector2D

Callers 1

NormalizeFunction · 0.70

Calls 1

InverseSqrtFunction · 0.85

Tested by

no test coverage detected