vec3:normalize

Adjusts the values in the vector so that its direction stays the same but its length becomes 1.

v = vec3:normalize()

Arguments

None

Returns

NameTypeDescription
vvec3The original vector.

See also