math.mag2
Syntax
Get the squared vector magnitude. This is useful as a measure of vector length without the cost of calling the math.sqrt function.
math.sqrt
f - vector squared magnitude
v - vector (2D or 3D)
math.mag
math.max
9.1.13