@mocanvas/editor · function
declare function intersectLineSegmentCircle(a1: VecLike, a2: VecLike, c: VecLike, r: number): null | VecLike[]Where the segment a1→a2 crosses the circle of radius r about c, or
null when it misses it entirely. A segment that lies wholly inside the circle
crosses it nowhere and also gives null.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.