STATE_math_get_reflected_direction

 

 


   Calculates the ray that reflects from a surface according to the
   physic law: the hitting angle is equal to the reflected angle.
   Arguments:
   normal is the normal of the plane that the ray hits.
   hitting_ray is the ray that hits the plane
   the result is given in reflected_ray (the result is normalized)
   return value: OK, or VR_ERROR (in case of an error).

 

 

Go to page 1      Select API

 

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