homog2d library
|
Holds convex hull code. More...
Classes | |
struct | Mystack |
Inherits std::stack<> and adds a member function to fetch the underlying std::vector. Used in h2d::convexHull() More... | |
Functions | |
template<typename FPT > | |
size_t | getPivotPoint (const std::vector< Point2d_< FPT >> &in) |
Used int the convex hull algorithm. More... | |
template<typename T > | |
int | orientation (Point2d_< T > p, Point2d_< T > q, Point2d_< T > r) |
To find orientation of ordered triplet of points (p, q, r). More... | |
template<typename FPT > | |
std::vector< size_t > | sortPoints (const std::vector< Point2d_< FPT >> &in, size_t piv_idx) |
Sorts points by angle between the lines with horizontal axis. More... | |
Holds convex hull code.
size_t h2d::priv::chull::getPivotPoint | ( | const std::vector< Point2d_< FPT >> & | in | ) |
Used int the convex hull algorithm.
int h2d::priv::chull::orientation | ( | Point2d_< T > | p, |
Point2d_< T > | q, | ||
Point2d_< T > | r | ||
) |
To find orientation of ordered triplet of points (p, q, r).
The function returns following values
std::vector<size_t> h2d::priv::chull::sortPoints | ( | const std::vector< Point2d_< FPT >> & | in, |
size_t | piv_idx | ||
) |