Possible Duplicate:
How do determine if a polygon is complex/convex/nonconvex?
I'd like to know how you would check if a polygon is convex or not.
One apparent way of doing it is to run a convex hull algorithm. If the number of points in the convex hull is the same as the number of points in the polygon, does that mean the polygon is convex?