1 #ifndef CHAINHULL_H_INCLUDED
2 #define CHAINHULL_H_INCLUDED
33 static std::vector<std::array<double, 2> > Compute(
const std::vector<std::array<double, 2> >& polygon);
42 Point(
float xx = 0.0,
float yy = 0.0) : x(xx), y(yy) {}
45 double GetX()
const {
return x; }
48 double GetY()
const {
return y; }
63 static int chainHull_2D(
Point* P,
int n,
Point* H);
73 #endif // end_of_include_guard
Point class needed by 2D convex hull code.
Compute the convex hull of a set of two-dimensional points.
bool operator<(ChainHull::Point const &p1, ChainHull::Point const &p2)
Required to sort points (e.g.
Namespace for the core simulator.