18 #ifndef __H__OCULAR_MATH_CONVEX_HULL_2D__H__
19 #define __H__OCULAR_MATH_CONVEX_HULL_2D__H__
21 #include "Math/Vector2.hpp"
22 #include "Math/Geometry/LineSegment2D.hpp"
81 std::vector<Point2f>
const&
getHull()
const;
86 void splitCollection(
LineSegment2Df const& segment, std::vector<Point2f>& leftGroup, std::vector<Point2f>& rightGroup);
91 std::vector<Point2f> m_Points;
92 std::vector<Point2f> m_Hull;
ConvexHull2D(std::vector< Point2f > const &points)
Definition: ConvexHull2D.cpp:36
Definition: LineSegment2D.hpp:52
void sort()
Definition: ConvexHull2D.cpp:70
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: Vector2.hpp:44
Definition: ConvexHull2D.hpp:50
std::vector< Point2f > const & getHull() const
Definition: ConvexHull2D.cpp:80
void findHull(LineSegment2Df const &segment, std::vector< Point2f > &points)
Definition: ConvexHull2D.cpp:196
uint32_t getNumPoints() const
Definition: ConvexHull2D.cpp:75