norm - normalize vector
len = v.norm();
-
len - original lenght of the vector
Normalizes the vector and returns the original lenght.
v = new r3Vect(0.5, 0, 0);