Debian Codegraph @

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

raw
1 input geom2d;
2
3 beginfig(1);
4 O = Point(0,0);
5 P = Point(2,1);
6 A = Point(3,2);
7 Q = Point(-1,2);
8 R = Point(0,4);
9 B = Homothetie(A,P,3);
10 fleche Segment(O,P);
11 fleche Segment(P,A);
12 fleche Segment(A,B);
13
14 T = Triangle(A,Q,R);
15 T'= Homothetie(T,P,3);
16 trace T;
17 trace T';
18
19 C = Cercle(A,1.5);
20 trace C;
21 CC = Homothetie(C,P,3);
22 trace CC;
23
24 path p;
25 p:=Pt(A)..Pt(Q)..Pt(R);
26 W = Chemin(p);
27 trace W;
28 X = Homothetie(W,P,3);
29 trace X;
30
31 Q1 = PolygoneRegulier(10,2,0,(2,2));
32 trace Q1;
33 Q2 = Homothetie(Q1,P,3);
34 trace Q2;
35 endfig;
36 end.