Public function

Find the intersections between a polygon and a bounding box.

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

points

VecLike[]

bounds

Box
Returns
null | VecLike[]
References

VecLike, Box

Source

packages/editor/src/lib/primitives/intersect.ts

intersectLineSegmentPolylineintersectPolygonPolygon