
Calculates the convex hull of a given set of points. Monotone chain is used as algorithm.
Info
Given a set of points, the convex hull is a subset of points which form a polygon that encloses all points. The implemented algorithm is Andrew’s monotone chain algorithm, which has an efficient O(n log n) runtime.
(Maonus, [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0), via Wikimedia Commons)
Usage
The library consists of the convexHull
function, which takes a generic list of objects and accessor function for the x and y coordinates, and returns the objects forming a convex hull.