11#ifndef __CODAC_GRAHAMSCAN_H__
12#define __CODAC_GRAHAMSCAN_H__
16#include "codac_ThickPoint.h"
17#include "codac_ConvexPolygon.h"
21 enum class OrientationInterval { CLOCKWISE, COUNTERCLOCKWISE, UNDEFINED } ;
28 static const std::vector<Vector> convex_hull(
const std::vector<Vector>& v_points);
34 static const Vector next_to_top(
const std::stack<Vector>& s);
37 static void swap(Vector& p1, Vector& p2);
40 static const Interval dist(
const IntervalVector& p1,
const IntervalVector& p2);
43 static OrientationInterval orientation(
const IntervalVector& p0,
const IntervalVector& p1,
const IntervalVector& p2);
45 friend class ThickPointsSorter;
46 friend class ConvexPolygon;
49 class ThickPointsSorter
53 ThickPointsSorter(
const Vector& p0);
54 bool operator()(
const Vector& p1,
const Vector& p2);
58 Vector m_p0 = Vector(2);
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition codac_capd_helpers.h:9