normalize Vector
This normalizes a Vector to be of magnitude 1, unless the Vector is the zero Vector. In that case, it just returns back the zero Vector but with a different memory location.
Return
returns the normalized (or zero) Vector.
Parameters
vector
the Vector being normalized.