Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | Haskell2010 |
Algorithms.Geometry.ConvexHull.DivideAndConquer
Description
O(nlogn) time divide and conquer algorithm to compute the convex hull of a set of n points in R2.
Documentation
convexHull :: (Ord r, Num r) => NonEmpty (Point 2 r :+ p) -> ConvexPolygon p r Source #
O(nlogn) time ConvexHull using divide and conquer. The resulting polygon is given in clockwise order.