Requirements of a traits class to be used with the function is_y_monotone_2 that tests whether a sequence of 2D points defines a y-monotone polygon or not.
The following two types are required:
| |
The point type of the polygon vertices.
| |
| |
Predicate object type that compares Point_2s lexicographically.
Must provide bool operator()(Point_2 p, Point_2 q) where true
is returned iff p <xy q.
We have p<xyq, iff px < qx or px = qx and py < qy,
where px and py denote x and y coordinate of point p resp.
|
Only a copy constructor is required.
|
The following function that creates an instance of the above predicate object type must exist:
|
|
CGAL::Partition_traits_2<R>
CGAL::Kernel_traits_2
CGAL::Is_y_monotone_2<Traits>
CGAL::y_monotone_partition_2
CGAL::y_monotone_partition_is_valid_2