classifyPointInPolygon MethodStatic
Test if point (x,y) is IN, OUT or ON a polygon.
classifyPointInPolygon(x: number, y: number, points: Readonly<WritableXAndY>[]): undefined | number
@returns (1) for in, (-1) for OUT, (0) for ON
Parameter | Type | Description |
---|---|---|
x | number | x coordinate |
y | number | y coordinate |
points | Readonly<WritableXAndY>[] | array of xy coordinates. |
Returns - undefined | number
(1) for in, (-1) for OUT, (0) for ON
Defined in
- geometry3d/PolygonOps.ts Line 775
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.