Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a circle with center at point $(800,300)$ and radius of $350$. I have a ball at $(400,700)$ and traveling at velocity $(v_x, v_y)$.

How can I find where the ball will intercept the circle?

I'm doing this in code, but just really trying to figure out the math.

Thanks in advace

share|cite|improve this question

The ball describes a path $t \mapsto (400+t V_x, 700+t V_y)$, where you can interpret $t$ as time, if you wish. You are trying to find 'times' such that the distance from the path at that time to the center of the circle matches the radius (the possibilities are never, once or twice).

The distance to the center squared (including the square root complicates things) is $$d^2 = (t V_x-400)^2 + (t V_y +400)^2$$ This is a quadratic in $t$. Solve the equation $d^2=350^2$ for $t$, if it has real solutions it intersects and the solutions are the 'times' it intersects.

If it intersects, you can use the equation for the path to determine where the intersection occurs.

share|cite|improve this answer
And as the question was "where", not "when", you (OP) will still have one step to do once you have found $t$. – Gerry Myerson Apr 25 '12 at 4:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.