I'm trying to figure out how to calculate the following angle:
I know center (p1) and radius (r) of a circle. Given a point p3 I want to calculate the angle a such as the tangent (tan) of the circle at point p4, points in p3 direction.
Here's a figure:

Doesn anyone know how to do that?