intersectLineSegmentPolygon

Public Function

Find the intersections between a line segment and a closed polygon.

Parameters
NameDescription

a1

VecLike

The segment's first point.

a2

VecLike

The segment's second point.

points

VecLike[]

The points in the polygon.

Returns
null | VecLike[]
References

VecLike

Edit this page
Last edited on 11 May 2023
intersectLineSegmentLineSegmentintersectLineSegmentPolyline