| 1 |
input geom2d; |
| 2 |
|
| 3 |
labeloffset := 4; |
| 4 |
gddU:=1.cm; |
| 5 |
|
| 6 |
beginfig(1); |
| 7 |
O = Point(0,0); |
| 8 |
I = Point(1,0); |
| 9 |
J = Point(0.3,0.8); |
| 10 |
M = PointDansRepere(5,3,O,I,J); |
| 11 |
H = PointDansRepere(5,0,O,I,J); |
| 12 |
K = PointDansRepere(0,3,O,I,J); |
| 13 |
O' = Point(3,2); |
| 14 |
I' = Point(3.7,1.8); |
| 15 |
J' = Point(2.8,3); |
| 16 |
|
| 17 |
pair Mt; |
| 18 |
Mt = CoordonneesRepere(M,O',I',J'); |
| 19 |
H' = PointDansRepere(xpart Mt,0,O',I',J'); |
| 20 |
K' = PointDansRepere(0,ypart Mt,O',I',J'); |
| 21 |
|
| 22 |
Repere(8,6,1.5,1.5,1,1); |
| 23 |
Debut; |
| 24 |
trace Droite(O,I); |
| 25 |
trace Droite(O,J); |
| 26 |
trace Droite(O',I'); |
| 27 |
trace Droite(O',J'); |
| 28 |
|
| 29 |
trace Pt(K)--Pt(M)--Pt(H) dashed evenly; |
| 30 |
trace Pt(K')--Pt(M)--Pt(H') dashed evenly; |
| 31 |
|
| 32 |
marque.urt "M"; |
| 33 |
|
| 34 |
drawoptions(withpen pencircle scaled 1pt withcolor DodgerBlue); |
| 35 |
fleche Segment(O,K); |
| 36 |
fleche Segment(O,H); |
| 37 |
fleche Segment(O,M); |
| 38 |
|
| 39 |
drawoptions(withpen pencircle scaled 1pt withcolor LimeGreen); |
| 40 |
fleche Segment(O',M); |
| 41 |
fleche Segment(O',H'); |
| 42 |
fleche Segment(O',K'); |
| 43 |
|
| 44 |
drawoptions(withpen pencircle scaled 1.5pt withcolor Crimson); |
| 45 |
fleche Segment(O,I); |
| 46 |
fleche Segment(O,J); |
| 47 |
fleche Segment(O',I'); |
| 48 |
fleche Segment(O',J'); |
| 49 |
|
| 50 |
drawoptions(withpen pencircle scaled 1pt withcolor LightCoral); |
| 51 |
fleche Segment(O,O'); |
| 52 |
|
| 53 |
drawoptions(); |
| 54 |
marque.llft "O"; |
| 55 |
marque.llft "O'"; |
| 56 |
|
| 57 |
label.bot(textext("\(x\)"), PtR(H)); |
| 58 |
label.lft(textext("\(y\)"), PtR(K)); |
| 59 |
label.bot(textext("\(\vec\imath\)"), PtR(I)); |
| 60 |
label.lft(textext("\(\vec\jmath\)"), PtR(J)); |
| 61 |
|
| 62 |
label.bot(textext("\(x'\)"), PtR(H')); |
| 63 |
label.urt(textext("\(y'\)"), PtR(K')); |
| 64 |
label.bot(textext("\(\vec\imath'\)"), PtR(I')); |
| 65 |
label.lft(textext("\(\vec\jmath'\)"), PtR(J')); |
| 66 |
|
| 67 |
Fin; |
| 68 |
endfig; |
| 69 |
end |