![]() |
Pangolin
Header-only C++20 plane computational geometry library
|
Angular sorting of points around a center. More...
Go to the source code of this file.
Namespaces | |
| namespace | pgl |
Functions | |
| template<class Number, class Label, class CenterNumber, class CenterLabel> | |
| void | pgl::sortAround (std::vector< Point< Number, Label > > &points, const Point< CenterNumber, CenterLabel > &p) |
| Sorts points counterclockwise around a center point. | |
| template<class Number, class Label> | |
| void | pgl::hilbertSort (std::vector< Point< Number, Label > > &points) |
| Sorts points along a Hilbert space-filling curve. | |
Angular sorting of points around a center.
Algorithm headers sit above the shape API and express reusable geometry procedures in terms of the public primitives.