Normalize

Scales the input vector to unit length while preserving its direction. This is equivalent to dividing the input vector by its own magnitude.

Returns 0 when the input vector has zero length.

Interface

Inputs

ParameterDetailsPossible Types
Vector

Primary Input

vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

vec2