#include <CGAL/Extremal_polygon_traits_2.h>
template<typename K>
struct CGAL::Extremal_polygon_area_traits_2< K >
This is an advanced class.
Advanced
The class Extremal_polygon_area_traits_2
provides the types and operations needed to compute a maximum area \( k\)-gon \( P_k\) that can be inscribed into a given convex polygon \( P\) using the function extremal_polygon_2
.
- Template Parameters
-
K | must be a model of Kernel . |
- Is model of
ExtremalPolygonTraits_2
- See also
CGAL::maximum_area_inscribed_k_gon_2()
-
CGAL::maximum_perimeter_inscribed_k_gon_2()
-
CGAL::extremal_polygon_2()
-
CGAL::Extremal_polygon_perimeter_traits_2<K>
-
ExtremalPolygonTraits_2
|
typedef unspecified_type | FT |
| typedef to K::FT .
|
|
typedef unspecified_type | Point_2 |
| typedef to K::Point_2 .
|
|
typedef unspecified_type | Less_xy_2 |
| typedef to K::Less_xy_2 .
|
|
typedef unspecified_type | Orientation_2 |
| typedef to K::Orientation_2 .
|
|
typedef unspecified_type | Operation |
| AdaptableBinaryFunction class op : Point_2 \( \times\) Point_2 \( \rightarrow\) FT .
|
|
◆ FT
◆ Less_xy_2
◆ Operation
AdaptableBinaryFunction class op
: Point_2
\( \times\) Point_2
\( \rightarrow\) FT
.
For a fixed Point_2
\( root\), op
\( (p,\,q)\) returns twice the area of the triangle \( (root,\, q,\, p)\).
◆ Orientation_2
typedef to K::Orientation_2
.
◆ Point_2
◆ compute_min_k_gon()
template<typename K >
template<class RandomAccessIterator , class OutputIterator >
writes the vertices of [points_begin
, points_end
) forming a maximum area triangle rooted at points_begin[0]
to o and returns the past-the-end iterator for that sequence (== o + 3
).
◆ init()
◆ less_xy_2_object()
◆ min_k()
◆ operation()
returns Operation
where p
is the fixed \( root\) point.
◆ orientation_2_object()