Debian Codegraph @

texmf-dist/doc/metapost/mp-geom2d/exemples/coniques/FD.mp

raw
1 input geom2d;
2
3 beginfig(1);
4 A = Point(0,0);
5 B = Point(3,2);
6 AB = Droite(A,B);
7 F_1 = Point(-1,1);
8 Hyper = HyperboleFD(F_1,AB,1.5);
9 %trace AB;
10 trace DemiHyperbole(Hyper,1);
11 E = EllipseFD(F_1,AB,0.7);
12 trace E;
13 D = Droite(Foyer(E,1),Foyer(E,2));
14 trace D;
15 trace Directrice(E,1);
16 trace Directrice(E,2);
17
18
19 endfig;
20
21 beginfig(2);
22 C := Point(3,2);
23 A := Point(5,1);
24 B := Point(3.5,3) ;
25 E := Ellipse(C,A,B);
26 F := EllipseF(C,A,2.5);
27 D := Centre(F);
28 pointe D;
29 trace E;
30 trace F;
31 pointe C;
32 pointe A;
33 pointe B;
34 %trace Directrice(E,1);
35 %trace Directrice(E,2);
36 trace Directrice(F,1);
37 trace Directrice(F,2);
38 endfig;
39 end.