The Polygon_2 class and the functions that implement the functionality found in that class each are parameterized by a traits class that defines the primitives used in the algorithms. The concept PolygonTraits_2 defines this common set of requirements.
The requirements of PolygonTraits_2 are a subset of the kernel requirements. We only list the types and methods which are required and refer to the description of the kernel concept for details.
| |
| |
The point type.
| |
| |
The segment type.
| |
| |
| |
| |
| |
| |
| |
| |
| |
Computes the signed area of the oriented
triangle defined by 3 Point_2 passed as arguments.
|
A default constructor and copy constructor are required.
The following functions that create instances of the above predicate object types must exist.
The kernels supplied by CGAL are models of PolygonTraits_2.
CGAL::Polygon_2<PolygonTraits_2, Container>