| 1 |
input geom2d; |
| 2 |
|
| 3 |
labeloffset := 4; |
| 4 |
gddU:=1.3cm; |
| 5 |
|
| 6 |
beginfig(1); |
| 7 |
|
| 8 |
|
| 9 |
O = Point(0,0); |
| 10 |
I = Point(1,0); |
| 11 |
J = Point(0.3,0.8); |
| 12 |
M = PointDansRepere(5,3,O,I,J); |
| 13 |
H = PointDansRepere(5,0,O,I,J); |
| 14 |
K = PointDansRepere(0,3,O,I,J); |
| 15 |
|
| 16 |
Repere(8,6,1.5,1.5,1,1); |
| 17 |
Debut; |
| 18 |
|
| 19 |
trace Droite(O,I); |
| 20 |
trace Droite(O,J); |
| 21 |
trace Pt(K)--Pt(M)--Pt(H) dashed evenly; |
| 22 |
|
| 23 |
marque.urt "M"; |
| 24 |
|
| 25 |
drawoptions(withpen pencircle scaled 1pt withcolor DodgerBlue); |
| 26 |
trace Vecteur(O,K); |
| 27 |
trace Vecteur(O,H); |
| 28 |
trace Vecteur(O,M); |
| 29 |
label.top(textext("$x\vec\imath$"),PtR(Milieu(O,H))); |
| 30 |
label.rt(textext("$y\vec\jmath$"),PtR(Milieu(O,K))); |
| 31 |
|
| 32 |
drawoptions(withpen pencircle scaled 1.5pt withcolor Crimson); |
| 33 |
trace Vecteur(O,I); |
| 34 |
trace Vecteur(O,J); |
| 35 |
|
| 36 |
drawoptions(); |
| 37 |
marque.llft "O"; |
| 38 |
|
| 39 |
label.bot(textext("$x$"), PtR(H)); |
| 40 |
label.lft(textext("$y$"), PtR(K)); |
| 41 |
label.bot(textext("$\vec\imath$"), PtR(I)); |
| 42 |
label.lft(textext("$\vec\jmath$"), PtR(J)); |
| 43 |
|
| 44 |
Fin; |
| 45 |
|
| 46 |
|
| 47 |
endfig; |
| 48 |
|
| 49 |
end |