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.
Normalizes the vector to a unit vector.
A new vector with the same direction but a magnitude of 1.
if the vector is a zero vector.