Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



Subject: convexhull return object on < 5 points
Date: Wed, 18 Dec 2013 05:51:41 +1100
To: bug-Math-Geometry-Planar [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
If convexhull() is called with a polygon of less than 5 points then it returns an array of points instead of a Math::Geometry::Planar. For example foo.pl below prints ARRAY(0xa168620) Math::Geometry::Planar=HASH(0xa19c2b0) I hoped that it would be the same sort of return in both cases, or if not then that the docs could describe this. I think returning a Math::Geometry::Planar object in all cases would be most convenient -- as long as nobody has depended on getting an arrayref back in the small points cases.

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