Skip Menu |
 

This queue is for tickets about the Math-Geometry-Planar CPAN distribution.

Report information
The Basics
Id: 96354
Status: new
Priority: 0/
Queue: Math-Geometry-Planar

People
Owner: Nobody in particular
Requestors: user42_kevin [...] yahoo.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: suggest bbox_xy() bounding box variant
Date: Tue, 10 Jun 2014 16:54:34 +1000
To: bug-Math-Geometry-Planar [...] rt.cpan.org
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
Download (untitled) / with headers
text/plain 507b
As an idea for a feature, it could be good to have a bounding box variation which returned x,y values, ($min_x,$min_y, $max_x,$max_y) = $planar->bbox_xy() I had an urge for this when wanting to iterate points over a polygon's extent, so I wanted the min,max values individually rather then the way $planar->bbox() gives a new polygon bounding box. It being useful for plotting a polygon, to know its extents before beginning. Perhaps something along the lines below, cutting bbox() into two parts.
Download Planar.pm.diff
text/x-diff 1.8k

Message body is not shown because sender requested not to inline it.

Download Planar.t.diff
text/x-diff 855b

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.