NAME

Math::Polygon::Clip - frame a polygon in a square

INHERITANCE

Math::Polygon::Clip
  is a Exporter

SYNOPSIS

my @poly  = ( [1,2], [2,4], [5,7], [1, 2] );
my @box   = ( $xmin, $ymin, $xmax, $ymax );

my $boxed = polygon_clip \@box, @poly;

DESCRIPTION

Cut-off all parts of the polygon which are outside the box

REFERENCES

See the Math::Polygon website at http://perl.overmeer.net/geo for more details.

COPYRIGHTS

Module version 0.004. Written by Mark Overmeer (polygon@overmeer.net). See the ChangeLog for other contributors.

Copyright (c) 2004 by the author(s). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.