|
returns OK or VR_ERROR
normalize the vector. This means make it a unit vector.
In other words the direction of the vector will stay the same
but its length will become one
example:
double vec[3]={6,8,0} length==10
STATE_math_normalize_vec(vec);
Now the vec will be equal to { 0.6, 0.8, 0} (length==1)
|