[Numpy-discussion] how to tell if a point is inside a polygon
Thu Oct 16 13:54:48 CDT 2008
On Thu, Oct 16, 2008 at 1:25 PM, Rob Hetland <firstname.lastname@example.org> wrote:
> This question gets asked about once a month on the mailing list.
> Perhaps pnpoly could find a permanent home in scipy? (or somewhere?)
> Obviously, many would find it useful.
It is already in matplotlib
In : import matplotlib.nxutils as nx
In : nx.pnpoly
Out: <built-in function pnpoly>
In : nx.points_inside_poly
Out: <built-in function points_inside_poly>
but one of should add it to the FAQ!
More information about the Numpy-discussion