Problem of Apollonius, LLL Problem

Three lines l1, l2, and l3 are given. All circles which are tangent to the given lines shall be constructed.

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

This browser doesn't support HTML5 canvas!