Debian Codegraph @

texmf-dist/doc/metapost/mp-geom2d/exemples/transformations/inversion.mp

raw
1 input geom2d;
2
3 beginfig(1);
4 A = Point(2,2);
5 C = Cercle(A,2);
6 trace C;
7 marque.rt "A";
8 B = Point(0,1);
9 D = Inversion(B,C);
10 drawoptions(withcolor DarkRed);
11 CB = Cercle(B,1);
12 trace CB;
13 CD = Inversion(CB,C);
14 trace CB;
15 trace CD;
16 marque.rt "B"; marque.rt "D";
17
18 drawoptions(withcolor DarkBlue);
19 E = Point(3,1);
20 CE = Cercle(E,0.5);
21 trace CE;
22 marque.rt "E";
23 iCE = Inversion(CE,C);
24 trace iCE;
25
26
27 drawoptions(withcolor DarkGreen);
28 d = Droite((3,3),(4,2));
29 trace d;
30 Cd = Inversion(d,C);
31 trace Cd;
32
33 drawoptions(withcolor Salmon);
34 S = Point(1,3);
35 CS = CercleCP(S,A);
36 trace CS;
37 dS = Inversion(CS,C);
38 trace dS;
39 endfig;
40 end.