How to find coordinates of intersection of a line and a circle
Posted on 2004-10-14
I have a circle plotted in x,y coordinates. The center is at (14,5) with a radius of 5.
I have a point (*) at (16,6). I need a formula to determine the x,y coordinates where
a line intersects the circle (at ? below) if drawn from the center of the circle through the point *.
| . ?.
| . @ .
| . .
The coordinates I gave are just an example, I need a formula to solve any center, radius and * point.
BTW: This is not a homework problem. If I had paid more attention in geometry though I would
proabably know how to do this. This is not really a Java problem but I didn't know the
best forum to post it in.