use Math::Polygon::Convex qw/chainHull_2D/; my @points = ( [1,2], [2,4], [5,7], [1,2] ); my $poly = chainHull_2D @points;
The "convex polygon" around a set of points, is the polygon with a minimal size which contains all points.
This package contains one convex calculation algorithm, but may be extended with alternative implementations in the future.