classifyPointInPolygonXY MethodStatic
Test if point (x,y) is IN, OUT or ON a polygon.
classifyPointInPolygonXY(x: number, y: number, points: IndexedXYZCollection): number | undefined
Parameter | Type | Description |
---|---|---|
x | number | x coordinate |
y | number | y coordinate |
points | IndexedXYZCollection | array of xy coordinates. |
Returns - (1) for in, (-1) for OUT, (0) for ON
Defined in
Last Updated: 08 January, 2020