Note that this function works only if the polygon is convex.
The function doesn't check whether the point is on the polygon plane
to check if the point is on the plane first use STATE_polygon_are_all_points_on_one_plane()
actually this STATE_polygon_is_point_inside_polygon determines whether a point is inside the infinity cylinder\tube shape that
the given polygon is its profile.
So we can also call STATE_polygon_is_point_inside_polygon() with a point that is not
on the plane the function
Returns YES or NO.
|