STATE_math_is_clockwise

 

 



   Takes three points and returns whether they are in clockwise order or not
   when looking from above (looking in direction 0,0,-1). If all the points
   have the same x or y values then one cant tell (when looking from above) if it is clockwise
   so in this case we look from front (looking in direction 0,0,-1) and if
   that doesn't succeed we look from the right side (looking in direction 0,-1,0)
   Returns YES or NO
   Note that the three points create a plane and from each side of the plane
   what is clockwise is exactly the other way around.
  
   If you want to check if the points are clockwise from a given point
   use STATE_math_get_plane_point_relations() like that
   create a plane from the three points and call the function when the point
   in which you look from is the given point.

 

 

Go to page 1      Select API

 

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