Testing if a Point is Inside a Polygon in Python
Finally got around to finding this out by Googling. It’s a useful function so I reproduce it here for copy & paste:
def inside_polygon(x, y, points): """ Return True if a coordinate (x, y) is inside a polygon defined by the list of verticies [(x1, y1), (x2, y2), .
... Continue reading.