[Math] Project a point within a circle onto its edge.

circlesgeometrysecant

What's the simplest way to find the intersection point of a straight line drawn from a circle's origin through a given point within the circle through the edge of the circle. I'm looking for the intersection point of the line and the edge of the circle.

enter image description here

I give up! Any help is much appreciated!

Best Answer

If the radius is $R$, the origin is $(0,0)$ and the point is $(x,y)$, so the intersection point in polar coordinates is $(R,\arctan(\frac{y}{x}))$ and you can easily convert this to Cartesian.

Related Question