Skip to content

aninest root / Vec2 / mag

mag()

ts
function mag(v): number

Calculates the magnitude of a vector.

Parameters

v: Vec2

Returns

number

The magnitude of the vector.

Defined in

Utils/vec2.ts:110