I need to calculate the two tangent points of a circle with the radius $r$ and two lines given by three points $Q(x_0,y_0)$, $P(x_1,y_1)$ and $R(x_2,y_2)$.
Sketch would explain the problem more. I need to find the tangent points $A(x_a,y_a)$ and $B(x_b,y_b)$. Note that the center of the circle is not given. Please help.


Let $O$ be the centre of the circle. Consider $\triangle OAP$. Find $\angle APO$ using the cosine rule and the fact that $\angle QPR=2\angle APO$. We know that $\angle OAP=90^\circ$ and $|OA|=r$. Solve.