Point inside polygon

I'm looking for a way to determine whether a particular point is within a polygon given its vertices using NumPy/SciPy.

I haven't been able to find one online. Is there even a way to do this using NumPy/SciPy?


Have you considered Shapely? Just create a Polygon and check if polygon contains a point.

>>> from shapely.geometry import Point
>>> from shapely.geometry.polygon import Polygon

>>> point = Point(0.5, 0.5)
>>> polygon = Polygon([(0, 0), (0, 1), (1, 1), (1, 0)])
>>> polygon.contains(point)
>>> point2 = Point((10, 10))
>>> polygon.contains(point2)

Need Your Help

How to sign my android project in jenkins?

android jenkins jenkins-plugins jenkins-cli

I am using Jenkins where I use BUILD --> INVOKE ANTS --> TARGETS --> clean debug to get a debug build (apk) from it. Now I want to get a signed apk from jenkins. I have added this settings...