Determines whether a given 2D point lies inside, outside, or on the boundary of a closed polyline.
The function performs several checks:
Returns a result object containing:
result
true
false
intersections
The closed polyline represented as an array of 2D vertices.
The 2D point to test.
An object describing the point's relation to the polyline and intersection details.
Determines whether a given 2D point lies inside, outside, or on the boundary of a closed polyline.
The function performs several checks:
Returns a result object containing:
result
:true
if the point is inside or on the boundary,false
otherwise.intersections
: Array of intersection points (if computed).