Skip to content

Documentation / @ripl/3d / vec3Normalize

Function: vec3Normalize() ​

vec3Normalize(v): Vector3

Defined in: 3d/src/math/vector.ts:43

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

Parameters ​

ParameterType
vVector3

Returns ​

Vector3