Public function

Find the intersections between a circle and a bounding box.

Signature
function intersectCirclePolyline(
  c: VecLike,
  r: number,
  points: VecLike[]
): null | VecLike[]
Parameters
NameDescription

c

VecLike

The circle's center.

r

number

The circle's radius.

points

VecLike[]

The points in the polyline.

Returns
null | VecLike[]
References

VecLike

Source

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

intersectCirclePolygonintersectLineSegmentCircle