intersectCirclePolygon

See source code

Find the intersections between a circle and a bounding box.

function intersectCirclePolygon(
  c: VecLike,
  r: number,
  points: VecLike[]
): null | VecLike[]

Parameters

NameDescription

c

The circle's center.

r

number

The circle's radius.

points

The points in the polygon.

Returns

null | VecLike[]
Prev
intersectCircleCircle
Next
intersectCirclePolyline