Find the intersections between a polygon and a bounding box.

function intersectPolygonBounds(
  points: VecLike[],
  bounds: Box
): null | VecLike[]
Parameters
NameDescription

points

VecLike[]

bounds

Box
Returns
null | VecLike[]
intersectLineSegmentPolylineintersectPolygonPolygon