math.mag

Syntax

f := math.mag(v)

Get the vector magnitude.

Returns:

f - vector magnitude

Arguments:

v - vector (2D or 3D)