Skip to content

aninest root / Vec2 / normalize

normalize()

ts
function normalize(v): Vec2

Returnes a normalized version of the vector.

Parameters

v: Vec2

Returns

Vec2

A new vector.

Defined in

Utils/vec2.ts:132