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

Function Magnitude

TSVector2D.h:438–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436 /// \related Vector2D
437
438 inline float Magnitude(const Vector2D& v)
439 {
440 return (Sqrt(v.x * v.x + v.y * v.y));
441 }
442
443 /// \brief Returns the inverse magnitude of the 2D vector $v$.
444 /// \related Vector2D

Callers

nothing calls this directly

Calls 1

SqrtFunction · 0.85

Tested by

no test coverage detected