texmf-dist/doc/metapost/mp-geom2d/exemples/triangles/triangles.mp
raw| 1 | input geom2d; |
| 2 | |
| 3 | beginfig(1); |
| 4 | |
| 5 | A = Point(0,0); |
| 6 | B = Point(7,0.3); |
| 7 | C = Point(1,3); |
| 8 | TABC = Triangle(A,B,C); |
| 9 | D = Orthocentre(TABC); |
| 10 | C_C = CercleCirconscrit(TABC); |
| 11 | C_E = CercleEuler(TABC); |
| 12 | trace TABC; |
| 13 | trace C_C withcolor DarkBlue; |
| 14 | trace C_E withcolor DarkRed; |
| 15 | pointe A; |
| 16 | pointe B; |
| 17 | pointe C; |
| 18 | pointe D; |
| 19 | pointe Centre(C_C); |
| 20 | pointe Centre(C_E); |
| 21 | marque.lft "A"; |
| 22 | marque.rt "B"; |
| 23 | marque.lft "C"; |
| 24 | marque.rt "D"; |
| 25 | endfig; |
| 26 | |
| 27 | end. |