Find the intersections between a circle and a bounding box.

function intersectCirclePolygon(
  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 polygon.

Returns
null | VecLike[]
intersectCircleCircleintersectCirclePolyline