Normalize

This function returns a normalized vector. The resulting vector will have a length of 1.

Syntax

Returns

Returns the normalized vector. If the magnitude of this vector is 0, Vec3(0) will be returned.