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.