normalize

abstract fun normalize(): Vector3D

Gets a unit vector pointing in the same direction as this one, if (and only if) the vector's length is not 0. Otherwise, the vector itself is returned.

Return

a unit vector pointing in the same direction as this one IFF this vector has a non-zero length