Algorithm-BreakOverlappingRectangles
view release on metacpan or search on metacpan
lib/Algorithm/BreakOverlappingRectangles.pm view on Meta::CPAN
=item Algorithm::BreakOverlappingRectangles->new()
Creates a new object.
=item $bor->add_rectangle($x0, $y0, $x1, $y1, @names)
Adds a new rectangle to the set.
C<$x0, $y0, $x1, $y1> are the coordinates of the extremes. C<@names>
can be anything you like and will be attached to the output rectangles
contained inside this one.
=item $bor->get_rectangles()
Returns the set of non-overlapping rectangles. Every entry is an array
of the form C<[$x0, $y0, $x1, $y1, @names]>.
=item $bor->get_rectangles_as_array_ref()
Returns an array ref (actually a tied one) containing the broken
( run in 1.046 second using v1.01-cache-2.11-cpan-e1769b4cff6 )