The function is_convex_2 computes if a polygon is convex.
#include <CGAL/Polygon_2_algorithms.h>
PolygonTraits_2 CGAL::Polygon_2<PolygonTraits_2, Container>