Skip to content

polygon2ContainsPoint

polygon2ContainsPoint(p, point): boolean

Defined in: polygon2.ts:71

Tests whether point lies inside the polygon using the ray casting algorithm. Points exactly on the boundary may give inconsistent results.

Polygon2

Point2

boolean