summaryrefslogtreecommitdiff
path: root/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations')
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie-1.pdfbin0 -> 2073 bytes
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie.mp36
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion-1.pdfbin0 -> 11418 bytes
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion.mp40
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie-1.pdfbin0 -> 3952 bytes
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie.mp26
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale-1.pdfbin0 -> 4076 bytes
-rw-r--r--graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale.mp27
8 files changed, 129 insertions, 0 deletions
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie-1.pdf b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie-1.pdf
new file mode 100644
index 0000000000..5f3a9ac552
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie-1.pdf
Binary files differ
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie.mp b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie.mp
new file mode 100644
index 0000000000..f398d17da2
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/homothetie.mp
@@ -0,0 +1,36 @@
+input geom2d;
+
+beginfig(1);
+ O = Point(0,0);
+ P = Point(2,1);
+ A = Point(3,2);
+ Q = Point(-1,2);
+ R = Point(0,4);
+ B = Homothetie(A,P,3);
+ fleche Segment(O,P);
+ fleche Segment(P,A);
+ fleche Segment(A,B);
+
+ T = Triangle(A,Q,R);
+ T'= Homothetie(T,P,3);
+ trace T;
+ trace T';
+
+ C = Cercle(A,1.5);
+ trace C;
+ CC = Homothetie(C,P,3);
+ trace CC;
+
+ path p;
+ p:=Pt(A)..Pt(Q)..Pt(R);
+ W = Chemin(p);
+ trace W;
+ X = Homothetie(W,P,3);
+ trace X;
+
+ Q1 = PolygoneRegulier(10,2,0,(2,2));
+ trace Q1;
+ Q2 = Homothetie(Q1,P,3);
+ trace Q2;
+endfig;
+end. \ No newline at end of file
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion-1.pdf b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion-1.pdf
new file mode 100644
index 0000000000..cce481b377
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion-1.pdf
Binary files differ
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion.mp b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion.mp
new file mode 100644
index 0000000000..fcd762b574
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/inversion.mp
@@ -0,0 +1,40 @@
+input geom2d;
+
+beginfig(1);
+A = Point(2,2);
+C = Cercle(A,2);
+trace C;
+marque.rt "A";
+B = Point(0,1);
+D = Inversion(B,C);
+drawoptions(withcolor DarkRed);
+CB = Cercle(B,1);
+trace CB;
+CD = Inversion(CB,C);
+trace CB;
+trace CD;
+ marque.rt "B"; marque.rt "D";
+
+drawoptions(withcolor DarkBlue);
+E = Point(3,1);
+CE = Cercle(E,0.5);
+trace CE;
+marque.rt "E";
+iCE = Inversion(CE,C);
+trace iCE;
+
+
+drawoptions(withcolor DarkGreen);
+d = Droite((3,3),(4,2));
+trace d;
+Cd = Inversion(d,C);
+trace Cd;
+
+drawoptions(withcolor Salmon);
+S = Point(1,3);
+CS = CercleCP(S,A);
+trace CS;
+dS = Inversion(CS,C);
+trace dS;
+endfig;
+end. \ No newline at end of file
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie-1.pdf b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie-1.pdf
new file mode 100644
index 0000000000..1c4288a545
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie-1.pdf
Binary files differ
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie.mp b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie.mp
new file mode 100644
index 0000000000..d152d9018a
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrie.mp
@@ -0,0 +1,26 @@
+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 = SymetrieAxialePoint(A,D);
+pointe A;
+pointe B;
+trace D;
+C = Cercle(A,2);
+P = ParaboleFD(A,DD);
+trace C;
+CC = SymetrieAxiale(C,D);
+PP = SymetrieAxiale(P,D);
+trace CC;
+trace P;
+trace PP;
+
+endfig;
+end. \ No newline at end of file
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale-1.pdf b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale-1.pdf
new file mode 100644
index 0000000000..c32b7f91f2
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale-1.pdf
Binary files differ
diff --git a/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale.mp b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale.mp
new file mode 100644
index 0000000000..077b216de6
--- /dev/null
+++ b/graphics/metapost/contrib/macros/mp-geom2d/doc/exemples/transformations/symetrieCentrale.mp
@@ -0,0 +1,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. \ No newline at end of file