Templated convex_hull function in Geometry.cpp

This commit is contained in:
Lukas Matena 2018-08-17 15:20:35 +02:00
parent 3f72ca2a15
commit 48b9793d3d
4 changed files with 43 additions and 19 deletions

View file

@ -108,8 +108,10 @@ inline bool segment_segment_intersection(const Pointf &p1, const Vectorf &v1, co
return true;
}
Pointf3s convex_hull(Pointf3s points);
Polygon convex_hull(Points points);
Polygon convex_hull(const Polygons &polygons);
void chained_path(const Points &points, std::vector<Points::size_type> &retval, Point start_near);
void chained_path(const Points &points, std::vector<Points::size_type> &retval);
template<class T> void chained_path_items(Points &points, T &items, T &retval);