Math::Polygon::Surface(3pm) | User Contributed Perl Documentation | Math::Polygon::Surface(3pm) |
Math::Polygon::Surface - Polygon with exclusions
my $outer = Math::Polygon->new( [1,2], [2,4], [5,7], [1,2] ); my $surface = Math::Polygon::Surface->new($outer);
A surface is one polygon which represents the outer bounds of an array, plus optionally a list of polygons which represent exclusions from that outer polygon.
Each polygon is a references to an ARRAY of points, each an ARRAY of X and Y, but better pass Math::Polygon objects.
-Option--Default inner [] outer undef
All polygons are treated separately.
Returned is a single string possibly containing multiple lines. The first line is the outer, the other lines represent the inner polygons.
This module is part of Math-Polygon distribution version 1.10, built on January 03, 2018. Website: http://perl.overmeer.net/CPAN/
Copyrights 2004-2018 by [Mark Overmeer]. 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/
2022-10-13 | perl v5.34.0 |