Determine the points of intersection between a line segment (p0,p1) and a circle. There will be zero, one, or two intersections See https://math.stackexchange.com/a/311956.
The initial point of the line segment
The terminal point of the line segment
The center of the circle
The radius of the circle
Optional
A small tolerance for floating point precision
Determine the points of intersection between a line segment (p0,p1) and a circle. There will be zero, one, or two intersections See https://math.stackexchange.com/a/311956.