The angle between two intersecting tangents to a circle

geometry

A circle of radius $r$ with centre $C$ is located at distance $d$ from a point $P$.

There are two tangents to the circle which pass through point $P$ – one on each side. They intersect the circle at points $A$ and $B$.

What is the angle through $P$ between these two tangents? In other words, angle $APB$?

I know that angle $APB$ + angle $ACB$ add up to 180.

(Not homework, for graphics programming)
Thanks,
Louise

Best Answer

Here is a picture:

enter image description here

$\overline {CP} = d$

$\angle CAP$ and $\angle BAP$ are right angles, and $\triangle APB$ is isosceles.

$m\angle APC = \arcsin \frac rd\\ m\angle APB = 2\arcsin \frac rd\\ m\angle BAP = \arccos \frac rd$