summaryrefslogtreecommitdiff
path: root/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale.mp
blob: 077b216de6a23ff09a965ca5479f09d44867d5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
input geom2d;

beginfig(1);

A = Point(2,2);
a = Point(-1,-1);
b = Point(2,0);
c = Point(3,-2);
aa = Point(-1,-1.5);
DD = Droite(aa,c);
D = Droite(a,b);
B = SymetrieCentralePoint(A,a);
pointe a avecCrayon(1,red);
pointe A;
pointe B;
%trace D;
C = Cercle(A,2);
P = ParaboleFD(A,DD);
trace C;
CC = SymetrieCentrale(C,a);
PP = SymetrieCentrale(P,a);
trace CC;
trace P;
trace PP;

endfig;
end.