I have a circle and a few lines intersecting the circle.
What I know about the problem is:
- The radius (R) of circle.
- The center(C) of circle.
- The start (S) and end (E) of lines.
Using this information, how can I calculate the (green) points on the circle?
I won't be doing this on paper but writing a method in C++. So, I need possibly a pseudocode algorithm which can do this.

In Mathematica:
Any point on the line segment can be described by $a s + (1 - a) ee$ for $0<a<1$. Solve for that value of $a$ such that the squared distance between the corresponding point and the center $c$ is $r^2$.