Given: two points of line segment, point of circle center, circle radius
We are in 2D, here.
How do you determine if and where the line segment is intersecting the circle?
------------------
Oddball Software
http://zap.to/oddball
Given: two points of line segment, point of circle center, circle radius
We are in 2D, here.
How do you determine if and where the line segment is intersecting the circle?
------------------
Oddball Software
http://zap.to/oddball
The (nonstandard) equations for lines and circles are:
y = mx + b and
(x-h)^2 + (y-k)^2 = r^2
Where m is the slope, and b is the point the line crosses the Y axis.
(h,k) is the center of the circle and R is the radius.
Hope this helps