haccepted-0.1.0.0: Data structures and algorithms
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConvexHull

Description

2D convex hull

The convex hull is calculated using Andrew's monotone chain algorithm.

Sources:

Synopsis

Documentation

convexHull :: [V2] -> [V2] Source #

Calculates the convex hull for a set of points. The points should be distinct. The points on the hull are returned in clockwise order. O(n log n).