Find the intersections between a line segment and a polyline.

function intersectLineSegmentPolyline(
  a1: VecLike,
  a2: VecLike,
  points: VecLike[]
): null | VecLike[]
Parameters
NameDescription

a1

VecLike

The segment's first point.

a2

VecLike

The segment's second point.

points

VecLike[]

The points in the polyline.

Returns
null | VecLike[]
intersectLineSegmentPolygonintersectPolygonBounds