Math::Polygon::Convex(3pm)

Math::Polygon::Convex3pm

Collection of convex algorithms

Usage

 use Math::Polygon::Convex  qw/chainHull_2D/;
 my @points = ( [1,2], [2,4], [5,7], [1,2] );
 my $poly   = chainHull_2D @points;

Inheritance

 Math::Polygon::Convex
   is an Exporter

Overview

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.

Functions

chainHull_2D(@points)

Each POINT is an ARRAY of two elements: the X and Y coordinate of a point. Returned is the enclosing convex Math::Polygon object.

Algorithm by Dan Sunday, http://geometryalgorithms.com/Archive/algorithm_0109/algorithm_0109.htm

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–11
  6. 12
  7. 13

License

Copyrights 2004-2025 by [Mark Overmeer <[email protected]>]. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/

From libmath-polygon-perl 1.11-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.