Back to class index
| Polygon::IsConvexSyntaxbool Polygon::IsConvex() const; [24 lines of code]Tests if this polygon is convex. A polygon is convex, if for each pair of points inside the polygon, also the line segment joining those points is inside the polygon. Note This data structure can be used with both convex and non-convex polygons. In general, using convex polygons allows more efficient algorithms to be used with some operations. These more efficient variants are of form xxxConvex() in this class. Do not call those functions unless you know that the polygon is convex. See Also |