intersectPolygonBounds

See source code

Find the intersections between a polygon and a bounding box.

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

Parameters

NameDescription

points

bounds

Returns

null | VecLike[]
Prev
intersectLineSegmentPolyline
Next
intersectPolygonPolygon