math.unit

Syntax

vr := math.unit(v)

Get a unit vector. vr has been normalized by the magnitude of v.

Returns:

vr - unit vector

Arguments:

v - vector