Debian Codegraph @

texmf-dist/doc/metapost/mp-geom2d/exemples/cercles/cercles1.mp

raw
1 input geom2d;
2
3 labeloffset := 6;
4
5 gddTaillePoint := 3;
6 gddCouleurPoint := Yellow;
7
8 beginfig(1);
9
10 Repere(9,9,4,5,0.8,0.8);
11 Axes;
12 Debut;
13 Graduations;
14 Unites(1);
15
16 C1 = Cercle((1,1),3);
17 C2 = Cercle((-1,-2),1);
18
19 P1 = IntersectionCercles(C1,C2);
20 P2 = IntersectionCercles(C2,C1);
21
22 drawoptions(withcolor LightSlateGrey);
23 trace C1;
24 trace C2;
25
26 drawoptions();
27 pointe Point(1,1);
28 pointe Point(-1,-2);
29 pointe P1;
30 pointe P2;
31 label.urt(textext("\(P_1\)"),PtR(P1));
32 label.top(textext("\(P_2\)"),PtR(P2));
33
34 Fin;
35
36 endfig;
37 end