perl-Math-ConvexHull-MonotoneChain
Andrew's monotone chain algorithm for finding a convex hull in 2D
This is somewhat experimental still. This (XS) module optionally exports a single function 'convex_hull' which calculates the convex hull of the input points and returns it. The algorithm is 'O(n log n)' due to having to sort the input list, but should be somewhat faster than a plain Graham's scan (also 'O(n log n)') in practice since it avoids polar coordinates.
GPL-1.0+ or Artistic-1.0cloud_download Downloads
To download packages, you need to log in and have a valid subscription.
Please select a product to see the available package versions:
Loading...
Loading package downloads...