\section{Convertions}
\label{group__Convertions}\index{Convertions@{Convertions}}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf vect2\_\-pol2cart} ({\bf vect2\_\-pol} $\ast$vp, {\bf vect2\_\-cart} $\ast$vc)
\begin{CompactList}\small\item\em Convert a polar vector to a cartesian one. \item\end{CompactList}\item 
void {\bf vect2\_\-cart2pol} ({\bf vect2\_\-cart} $\ast$vc, {\bf vect2\_\-pol} $\ast$vp)
\begin{CompactList}\small\item\em Convert a cartesian vector to a polar one. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This functions allow to convert between the 2 vector types. 

\subsection{Function Documentation}
\index{Convertions@{Convertions}!vect2\_\-cart2pol@{vect2\_\-cart2pol}}
\index{vect2\_\-cart2pol@{vect2\_\-cart2pol}!Convertions@{Convertions}}
\subsubsection[vect2\_\-cart2pol]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-cart2pol ({\bf vect2\_\-cart} $\ast$ {\em vc}, \/  {\bf vect2\_\-pol} $\ast$ {\em vp})}\label{group__Convertions_ge3b53bdb8d19cc7bc830302f3b6c84bd}


Convert a cartesian vector to a polar one. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vc}]reference to target cartesian vector to convert from. \item[{\em vp}]reference to target polar vector where the function write the result. \end{description}
\end{Desc}
\begin{Desc}
\item[Warning:]This function doesn't do any malloc ! You have to allocate structures before calling this function. \end{Desc}


Definition at line 19 of file vect2.c.

References \_\-vect2\_\-pol::r, \_\-vect2\_\-pol::theta, \_\-vect2\_\-cart::x, and \_\-vect2\_\-cart::y.

Referenced by trajectory\_\-goto\_\-xy\_\-rel(), vect2\_\-add\_\-pol(), and vect2\_\-sub\_\-pol().\index{Convertions@{Convertions}!vect2\_\-pol2cart@{vect2\_\-pol2cart}}
\index{vect2\_\-pol2cart@{vect2\_\-pol2cart}!Convertions@{Convertions}}
\subsubsection[vect2\_\-pol2cart]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-pol2cart ({\bf vect2\_\-pol} $\ast$ {\em vp}, \/  {\bf vect2\_\-cart} $\ast$ {\em vc})}\label{group__Convertions_gd9b3deb752a59535b4132a226ab62a57}


Convert a polar vector to a cartesian one. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vp}]reference to target polar vector to convert from. \item[{\em vc}]reference to target cartesian vector where the function write. \end{description}
\end{Desc}
\begin{Desc}
\item[Warning:]This function doesn't do any malloc ! You have to allocate structures before calling this function. \end{Desc}


Definition at line 7 of file vect2.c.

References \_\-vect2\_\-pol::r, \_\-vect2\_\-pol::theta, \_\-vect2\_\-cart::x, and \_\-vect2\_\-cart::y.

Referenced by trajectory\_\-goto\_\-d\_\-a\_\-rel(), trajectory\_\-goto\_\-xy\_\-rel(), vect2\_\-add\_\-pol(), and vect2\_\-sub\_\-pol().