CGAL::is_convex_2
Definition
The function is_convex_2 computes if a polygon is convex.
#include <CGAL/Polygon_2_algorithms.h>
template <class ForwardIterator, class Traits>
|
bool
|
is_convex_2 ( ForwardIterator first, ForwardIterator last, Traits traits)
|
Requirements
- Traits is a model of the concept
PolygonTraits_2
.
Only the following members of this traits class are used:
- Less_xy_2
- Orientation_2
- less_xy_2_object
- orientation_2_object
- ForwardIterator::value_type should be Traits::Point_2,
See Also
PolygonTraits_2
CGAL::Polygon_2<PolygonTraits_2, Container>