Line circle intersection
807605Oct 3 2007 — edited Oct 3 2007Could you please help me with the following?
I want to write a method that can return the two points of intersection between a circle and a line.
The equation of a circle is: (x - a)^2 + (y -b)^2 = r^2 (a,b) are the coordinates of the center of the circle, r the radius
The equation of a line (made by the two points) is: y = m*x + c;
The methode:
public Point[] getIntersection(Circle circle, Point p1, Point p2)
{
}
thank you in advance