Skip to content

Documentation / @ripl/3d / vec2Normalize

Function: vec2Normalize() ​

vec2Normalize(v): Vector2

Defined in: 3d/src/math/vector2.ts:40

Returns the unit-length direction of a vector, or the zero vector if length is 0.

Parameters ​

ParameterType
vVector2

Returns ​

Vector2