is_point_in_polygon#

static GeometryOperators.is_point_in_polygon(point, polygon)[source]#

Determine if a point is inside or outside a polygon, both located on the same plane.

The method implements the radial algorithm (https://es.wikipedia.org/wiki/Algoritmo_radial)

pointList

List of [x, y] coordinates.

polygonList

[[x1, x2, …, xn],[y1, y2, …, yn]]

Returns:
bool

True if the point is inside the polygon or exactly on one of its sides. False otherwise.