Problem of Apollonius, LLP Problem

Two lines l1 and l2 and a point P are given. All circles which are tangent to the given lines and pass through the given point shall be constructed.

You can drag the lines l1 and l2 or the point P (with pressed mouse button). For each type of solution, you can decide, whether the solution circles are to be drawn. The total number of solutions is indicated on the bottom right.

This browser doesn't support HTML5 canvas!