Function: isPointInsidePolygon()
Меньше 1 минуты
Function: isPointInsidePolygon()
isPointInsidePolygon(
point,segments):boolean
Point-in-polygon test using ray casting to the right (+X direction). Counts how many polygon segments the horizontal ray from point crosses.
Parameters
point
Vector3
segments
Line3[]
Returns
boolean