TNorm VNorm
R3FLOAT TNorm(R3VECTOR *v);
v - vector to be normlized
Length of the vector 'v' before normalization.
Normalizes given vector. If the length of the vector is zero, TNorm() doesn't normalize the vector and returns 0.0. VNorm() sets the vector to [1,0,0] and returns 1.0