Say I have a circle. If I draw a line that touches the circle, this line is in fact drawn to a certain degree, like this one (line OB).
Say the circle's center point is at (0; 0) [the actual point doesn't matter], how do I retrieve the point coordinates, that is on the line, that touches the circle, by using the line's angle?
The start and end points don't matter. I just need 2 points anywhere on the line that is drawn.
Thanks!
EDIT
I needed it for my JavaScript project. I eventually found the solution here.
Thanks for everyone!
One point is the center at $(0,0)$. The slope of the line is $m=\tan \theta$ where $\theta$ is the angle measured counterclockwise from the $x$ axis. The line is then $y=x \tan \theta.$ Choose any two $x$ values and you have your points.