Problem of Apollonius, LPP Problem

A line l and two points P1 and P2 are given. All circles which are tangent to the given line and pass through the given points shall be constructed.

You can drag the line l or the points P1 and P2 (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!