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 -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 .
We have , iff or and ,
where and denote and coordinate of point 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