inPolygon
inPolygon(
point
,polygon
):boolean
Performs the even-odd-rule Algorithm (a raycasting algorithm) to find out whether a point is in a given polygon. Ref: https://www.algorithms-and-technologies.com/point_in_polygon/javascript
Parameters
• point: number
[]
• polygon: number
[][]
Returns
boolean