intersectLineSegmentCircle

Public Function

Find the intersections between a line segment and a circle.

Parameters
NameDescription

a1

VecLike

The segment's first point.

a2

VecLike

The segment's second point.

c

VecLike

The circle's center.

r

number

The circle's radius.

Returns
null | VecLike[]
References

VecLike

Edit this page
Last edited on 11 May 2023
intersectCirclePolylineintersectLineSegmentLineSegment