| |
class used for representing the input
points.
| |
| |
class used for doing computations on point
coordinates (has to fulfill field-type requirements).
| |
| |
AdaptableBinaryFunction class op:
Point_2 Point_2 FT.
Together with init this operation recursively defines the
objective function to maximize. Let and be two vertices
of a polygon such that precedes in the oriented
vertex chain of starting with vertex . Then
op(p,q) returns the value by which an arbitrary
sub-polygon of with vertices from increases
when is added to it. E.g. in the maximum area case this is
the area of the triangle .
|
|
| returns the minimal for which a maximal -gon can be computed. (e.g. in the maximum area case this is three.) | ||
|
| |||
returns the value of the objective function for a polygon consisting of the two points p and q. (e.g. in the maximum area case this is FT( 0).) | ||||
|
| |||
return Operation where p is the fixed point. | ||||
| ||||
|
| |||
writes the points of [points_begin, points_end) forming a min_k()-gon rooted at points_begin[0] of maximal value to o and returns the past-the-end iterator for that sequence (== o + min_k()). | ||||
| ||||
|
| |||
returns true, iff the points [points_begin, points_end) form a convex chain. |
The classes Kgon_area_traits<R> and Kgon_perimeter_traits<R> (templatized with a CGAL representation class) both fulfill these requirements.