CabriJava demonstration of inversion in a circle

If B is a circle with centre O, radius r, and P is a point other than O, the inverse of P with respect to B is the point Q on OP with
OP.OQ = r2
If we consider P moving along a curve, then the inverses of P trace the inverse curve.
In the picture, B is the circle of inversion. The green circle G has inverse the red circle R.
The point c' is the inverse of c, the centre of G - it is not the centre of R!

You can move or alter G by dragging its centre or a point on G itself.
Observe that, if we move G so that it almost passes through O, the R is almost straight.
In the original cabri .fig, you actually get the line when O is on G, but not in the java version.

Main Cabri Page Cabri Java Official CabriJava Page