intersectLineSegmentCircle
See source codeFind the intersections between a line segment and a circle.
function intersectLineSegmentCircle(
a1: VecLike,
a2: VecLike,
c: VecLike,
r: number
): null | VecLike[]
Parameters
Name | Description |
---|---|
| The segment's first point. |
| The segment's second point. |
| The circle's center. |
|
The circle's radius. |
Returns
null | VecLike[]
Prev
intersectCirclePolylineNext
intersectLineSegmentLineSegment