Return true if point is contained in polygon, false otherwise
From https://github.com/substack/point-in-polygon ray-casting algorithm based on http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html
p1 --- p2 | * | p0 --- p3const poly = [[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]];const point = [0.5, 0.5];geomPointInPolygon(point, poly); // returns true Copy
p1 --- p2 | * | p0 --- p3const poly = [[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]];const point = [0.5, 0.5];geomPointInPolygon(point, poly); // returns true
Return true if point is contained in polygon, false otherwise