intersectCirclePolygon
Find the intersections between a circle and a bounding box.
function intersectCirclePolygon(
c: VecLike,
r: number,
points: VecLike[]
): null | VecLike[]
Parameters
Name | Description |
---|---|
|
The circle's center. |
|
The circle's radius. |
|
The points in the polygon. |
Returns
null | VecLike[]