title: determining algorithm for calculating a point intersecting a circle where the segment crosses from inside to the outside of the circle
body: <p>I have a line segment between points A and B.  A is inside a circle with a center at 0,0 with a radius of R.  I am stumped trying to come up with an efficient way to calculate the intersection of line segment AB with this circle.</p>