is_point_in_polygon#
- static GeometryOperators.is_point_in_polygon(point: list, polygon: list) bool#
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
Trueif the point is inside the polygon or exactly on one of its sides.Falseotherwise.