Subject: | docs of ->isinside() on boundary points |
Date: | Sat, 19 Apr 2014 10:44:23 +1000 |
To: | bug-Math-Geometry-Planar [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
The docs of ->isinside() don't say whether boundary points are reckoned
inside or not. I see from the code that they are. Perhaps expand a
little like
=head4 $polygon->isinside($point);
Returns true if C<$point> is inside the polygon or contour. C<$point>
is inside a contour if it is inside the outer polygon and not inside a
hole.
Points on the boundary are considered inside. Points on the boundary of
a hole are considered not inside. (A hole removes the entirety of the
hole polygon, including removing its boundary points.)