A line starts outside a circle at point A. It passes through the centre of the circle and ends inside the circle at point B. With point A remaining fixed, I want the line to rotate so that point B touches the circle. The following variables are known:
Distance AB
Distance from A to circle centre
Circle radius
How do I calculate the angle through which the line must rotate?