normalize

Normalizes the vector to a unit vector.

Return

A new vector with the same direction but a magnitude of 1.

Throws

if the vector is a zero vector.