STATE_math_normalize_vector

 

 


  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)

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com