I am trying to find the new position of a circle after it collides with a line, best explained by looking at this explanatory image.
I've got
Point A: Position of the circle [center of blue circle, start of red line]
Point B: New position of the circle [end of red line]
Radius R: Radius of the circle
Point LS: Start of the wall [black line]
Point LE: End of the wall [black line]
I would like to calculate the new position of the circle after it collides with the line [Position of the orange circle].