Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
Loading...
Searching...
No Matches
YasiuMath::ConvexHull Namespace Reference

Functions

template<typename T>
static std::vector< int > ConvexHull2D (const std::vector< std::pair< T, T > > &polygonPoints)

Detailed Description

Collection of convex hull functions

Function Documentation

◆ ConvexHull2D()

template<typename T>
std::vector< int > YasiuMath::ConvexHull::ConvexHull2D ( const std::vector< std::pair< T, T > > & polygonPoints)
static

Find Convex Hull in 2D space

Template Parameters
Tnumeric type of points
Parameters
polygonPointscollection of points X,Y
Returns
Collection of indexes assigned to convex hull in order