intersectCirclePolyline

See source code

Find the intersections between a circle and a bounding box.

function intersectCirclePolyline(
  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 polyline.

Returns

null | VecLike[]
Prev
intersectCirclePolygon
Next
intersectLineSegmentCircle