|
CGAL 6.3 - 2D Polygon Partitioning
|
#include <CGAL/polygon_function_objects.h>
Function object class that tests whether a sequence of points represents a \( y\)-monotone polygon or not.
PolygonIsValid Implementation
This test requires \(O(n)\) time for a polygon with \( n\) vertices.
Creation | |
| Is_y_monotone_2 (const Traits &t) | |
| Traits is a model of the concept IsYMonotoneTraits_2 | |
Operations | |
| template<class InputIterator> | |
| bool | operator() (InputIterator first, InputIterator beyond) |
| returns true iff the points of type Traits::Point_2 in the range [first,beyond) define a \( y\)-monotone polygon. | |