*x*and

*y*coordinates. Another approach derives the line that joins the points of intersection then intersects that line with the circle.

But the method I use is more direct, and I think mathematically more robust. By direct I mean it calculates the result directly and does not depend on intermediate results, such as calculating the line or one of

*x*and*y*first. As such there's much less chance the order of calculation will affect the result.