%\documentclass[convert=true,convert={convertexe={convert},density=1200,outext=.png}]{standalone}
%\documentclass[convert={density=300,command=\unexpanded{{\convertexe\space -density \density\space \infile\space -transparent \space white \outfile}}},tikz]{standalone}
\documentclass[convert=true,convert={convertexe={convert -background green -flatten},density=1200,outext=.png}]{standalone}
%\documentclass[convert=true,convert={convertexe={convert -transparent red},density=1200,outext=.png}]{standalone}
%\documentclass[convert=true,convert={convertexe={convert},density=1200,outext=.png}]{standalone}

\input{figsDefs.tex}

\begin{document}

	\begin{tikzpicture}
	% cercle de base
	\coordinate (O) at (0,0);
	\draw[->] (-2.5,0) -- (2.5,0) ;
	\draw[->] (0,-2.5) -- (0,2.5) ;
	
	\draw (0,0) circle (2);
	%angle 
	\pgfmathsetmacro{\sqrttwo}{1.4142}; %sqrt{2}
	\draw[->] (0,0) -- (\sqrttwo,\sqrttwo);
	\draw (\sqrttwo+1,\sqrttwo+0.5) node[above] {\(P(\alpha)=(\cos(\alpha),\sin(\alpha))\)};
	\draw[<->,red] (0,0)--(\sqrttwo,0);
	\draw (\sqrttwo*0.5,0) node[below] {\(\cos(\alpha)\)};  
	\draw[<->,red] (\sqrttwo,0)--(\sqrttwo,\sqrttwo);
	\draw (\sqrttwo*0.5+0.75,0.5*\sqrttwo) node[right] {\(\sin(\alpha)\)};  
	\end{tikzpicture}

\end{document}

%\begin{tikzpicture}%
%	% trajectoire f=1./48.*(-2*x*x*x-9*x*x+107)
%	% deriv\'{e}e fp=1./48.*(-6*x*x-18*x)
%	\shorthandoff{:}
%	%\draw[-,blue,thick] node[left=3pt] {$\Gamma$} plot[id=temp,smooth,domain=-1:3.5,samples=30]function{1./48.*(-2*x*x*x-9*x*x+107)};
%	\draw[-,blue,thick] plot[id=temp,smooth,domain=-1:3.5,samples=30] function{1./48.*(-2*x*x*x-9*x*x+107)} node[left=3pt] {$\Gamma$};
%	
%	\shorthandon{:}
%	% point 1
%	\pgfmathsetmacro{\valX}{1};
%	\pgfmathsetmacro{\valY}{1./48.*(-2*\valX*\valX*\valX-9*\valX*\valX+107)};
%	\path (\valX,\valY) node[shape=coordinate] (P1) {};%(1,2)%(-1,2.083333)
%	\draw[blue,fill=blue] (P1) circle (0.05) node[above] {$P_1$};%
%	\draw[->,>=latex,thick] (0,0) -- (P1) node[left,pos=0.5] {$\vec{r}_1$};%
%	% tangente
%	\pgfmathsetmacro{\valPenteUn}{1./48.*(-6*\valX*\valX-18*\valX)};
%	\draw[dashed,brown] (P1)+(-1*2,-\valPenteUn*2) -- node[above,sloped,pos=0.2] {} +(1*2.5,\valPenteUn*2.5);%
%	% vitesse
%	\path (1*2,\valPenteUn*2) node[shape=coordinate] (v1) {};
%	\draw[->,>=latex,thick,vitCol] (P1) -- +(v1) node[above,pos=0.7] {$\vec{v}_1$};%
%	% point 2
%	\pgfmathsetmacro{\valX}{2.5};
%	\pgfmathsetmacro{\valY}{1./48.*(-2*\valX*\valX*\valX-9*\valX*\valX+107)};
%	\path (\valX,\valY) node[shape=coordinate] (P2) {};
%	\draw[blue,fill=blue] (P2) circle (0.05) node[right] {$P_2$};%
%	\draw[->,>=latex,thick] (0,0) -- (P2) node[below right,pos=0.5] {$\vec{r}_2$};%
%	% tangente
%	\pgfmathsetmacro{\valPenteDeux}{1./48.*(-6*\valX*\valX-18*\valX)};
%	\draw[dashed,brown] (P2)+(-1*1,-\valPenteDeux*1) -- node[above,sloped,pos=0.2] {} +(1*1.5,\valPenteDeux*1.5);%
%	% vitesse
%	\path (1*0.8,\valPenteDeux*0.8) node[shape=coordinate] (v2) {};
%	\draw[->,>=latex,thick,vitCol] (P2) -- +(v2) node[right,pos=0.5] {$\vec{v}_2$};%
%	% d\'{e}placement
%	%\path (P1) -- (P2) node[above,pos=0.5] {$\Delta\vec{r}$};%
%	% origine
%	\draw[-] (0,-.1) -- (0,+.1) node[below left,pos=0.6] {$O$};%
%	\draw[-] (-.1,0) -- (.1,0) node[below] {};%
%	
%	% diff\'{e}rence de vitesses
%	\path (4,2) node[shape=coordinate] (S) {};
%	\path (S)+(v1) node[shape=coordinate] (S1) {};
%	\path (S)+(v2) node[shape=coordinate] (S2) {};
%	\draw[->,>=latex,thick,vitCol] (S) -- (S1) node[above,pos=0.7] {$\vec{v}_1$};%
%	\draw[->,>=latex,thick,vitCol] (S) -- (S2) node[left,pos=0.8] {$\vec{v}_2$};%
%	% d\'{e}placement
%	\draw[->,>=latex,thick,vitCol] (S1) -- (S2) node[below,pos=0.5] {$\Delta\vec{v}$};%
%\end{tikzpicture}%

