%@AUTEUR:Guillaume Connan
prologues:=2;
verbatimtex
%&latex
\documentclass{article}
\usepackage[upright]{fourier}
\begin{document}
etex
input geometriesyr16
figure(-10cm,-5cm,12cm,10cm);
%addition de deux vecteurs(Chasles 1)
numeric u;
pair t,r,g,d;
u=1cm;
t=(2u,1u);
r=(3u,-2u);
g:=(-2u,u);
d:=(3u,2u);
transform T,R,G,D;
T= identity shifted t;
R= identity shifted r;
D= identity shifted d;
G= identity shifted g;
z0=(0,0);z1= z0 transformed T;
z2=z1 transformed R;
drawarrow z0--z1 withcolor 0.6white;
drawarrow z1--z2 withcolor 0.6white;
drawarrow z0--z2 withcolor 0.4white withpen pencircle scaled 1.6bp;
label.lft(btex $A$ etex, z0);
label.rt(btex $B$ etex, z1);
label.rt(btex $C$ etex, z2);
label.top(btex $\overrightarrow{u}$ etex, 0.5[z0,z1]);
label.top(btex $\overrightarrow{v}$ etex, 0.5[z1,z2]);
label.bot(btex $\overrightarrow{u}+\overrightarrow{v}$ etex, 0.5[z0,z2]) withcolor 0.4white withpen pencircle scaled 1.6bp;
fin;
end