Appearance
aninest root / Vec2 / mag
function mag(v): number
Calculates the magnitude of a vector.
• v: Vec2
Vec2
number
The magnitude of the vector.
Utils/vec2.ts:110