\section{Basics}
\label{group__Basics}\index{Basics@{Basics}}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf vect2\_\-add\_\-pol} ({\bf vect2\_\-pol} $\ast$v1, {\bf vect2\_\-pol} $\ast$v2, {\bf vect2\_\-pol} $\ast$vresult)
\begin{CompactList}\small\item\em Add 2 polar vectors and return the result. \item\end{CompactList}\item 
void {\bf vect2\_\-add\_\-cart} ({\bf vect2\_\-cart} $\ast$v1, {\bf vect2\_\-cart} $\ast$v2, {\bf vect2\_\-cart} $\ast$vresult)
\begin{CompactList}\small\item\em Add 2 cartesian vectors and return the result. \item\end{CompactList}\item 
void {\bf vect2\_\-sub\_\-pol} ({\bf vect2\_\-pol} $\ast$v1, {\bf vect2\_\-pol} $\ast$v2, {\bf vect2\_\-pol} $\ast$vresult)
\begin{CompactList}\small\item\em Substract 2 polar vectors and return the result. \item\end{CompactList}\item 
void {\bf vect2\_\-sub\_\-cart} ({\bf vect2\_\-cart} $\ast$v1, {\bf vect2\_\-cart} $\ast$v2, {\bf vect2\_\-cart} $\ast$vresult)
\begin{CompactList}\small\item\em Substract 2 cartesian vectors and return the result. \item\end{CompactList}\item 
void {\bf vect2\_\-scale\_\-cart} ({\bf vect2\_\-cart} $\ast$v1, {\bf Real} alpha, {\bf vect2\_\-cart} $\ast$vresult)
\begin{CompactList}\small\item\em Multiply a cartesian vector by a scalar and return the result. \item\end{CompactList}\item 
void {\bf vect2\_\-scale\_\-pol} ({\bf vect2\_\-pol} $\ast$v1, {\bf Real} alpha, {\bf vect2\_\-pol} $\ast$vresult)
\begin{CompactList}\small\item\em Multiply a polar vector by a scalar and return the result. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This functions allow basic vector operations. 

\subsection{Function Documentation}
\index{Basics@{Basics}!vect2\_\-add\_\-cart@{vect2\_\-add\_\-cart}}
\index{vect2\_\-add\_\-cart@{vect2\_\-add\_\-cart}!Basics@{Basics}}
\subsubsection[vect2\_\-add\_\-cart]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-add\_\-cart ({\bf vect2\_\-cart} $\ast$ {\em v1}, \/  {\bf vect2\_\-cart} $\ast$ {\em v2}, \/  {\bf vect2\_\-cart} $\ast$ {\em vresult})}\label{group__Basics_g0906adad77b06de217d713d051d120bc}


Add 2 cartesian vectors and return the result. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em v1}]Reference to a cartesian vector to sum. \item[{\em v2}]Reference to a cartesian vector to sum. \item[{\em vresult}]Reference to a polar vector to store 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}
\[ \vec V_{result} = \vec V_1 + \vec V_2 \] 

Definition at line 50 of file vect2.c.

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

Referenced by vect2\_\-add\_\-pol().\index{Basics@{Basics}!vect2\_\-add\_\-pol@{vect2\_\-add\_\-pol}}
\index{vect2\_\-add\_\-pol@{vect2\_\-add\_\-pol}!Basics@{Basics}}
\subsubsection[vect2\_\-add\_\-pol]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-add\_\-pol ({\bf vect2\_\-pol} $\ast$ {\em v1}, \/  {\bf vect2\_\-pol} $\ast$ {\em v2}, \/  {\bf vect2\_\-pol} $\ast$ {\em vresult})}\label{group__Basics_g8d5af70272894d502cad19f5cf82193d}


Add 2 polar vectors and return the result. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em v1}]Reference to a polar vector to sum. \item[{\em v2}]Reference to a polar vector to sum. \item[{\em vresult}]Reference to a polar vector to store 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}
\begin{Desc}
\item[Note:]This function convert the 2 entry vectors to cartesian, sum them and then convert the result to polar. So please think before using it.\end{Desc}
\[ \vec V_{result} = \vec V_1 + \vec V_2 \] 

Definition at line 32 of file vect2.c.

References vect2\_\-add\_\-cart(), vect2\_\-cart2pol(), and vect2\_\-pol2cart().\index{Basics@{Basics}!vect2\_\-scale\_\-cart@{vect2\_\-scale\_\-cart}}
\index{vect2\_\-scale\_\-cart@{vect2\_\-scale\_\-cart}!Basics@{Basics}}
\subsubsection[vect2\_\-scale\_\-cart]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-scale\_\-cart ({\bf vect2\_\-cart} $\ast$ {\em v1}, \/  {\bf Real} {\em alpha}, \/  {\bf vect2\_\-cart} $\ast$ {\em vresult})}\label{group__Basics_gcec5d442f908a23cd805da170d09d653}


Multiply a cartesian vector by a scalar and return the result. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em v1}]Reference to a cartesian vector. \item[{\em alpha}]The multiplying scalar. \item[{\em vresult}]Reference to a cartesian vector to store 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}
\[ \vec V_{result} = \alpha\vec V_1 \] 

Definition at line 88 of file vect2.c.

References \_\-vect2\_\-cart::x, and \_\-vect2\_\-cart::y.\index{Basics@{Basics}!vect2\_\-scale\_\-pol@{vect2\_\-scale\_\-pol}}
\index{vect2\_\-scale\_\-pol@{vect2\_\-scale\_\-pol}!Basics@{Basics}}
\subsubsection[vect2\_\-scale\_\-pol]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-scale\_\-pol ({\bf vect2\_\-pol} $\ast$ {\em v1}, \/  {\bf Real} {\em alpha}, \/  {\bf vect2\_\-pol} $\ast$ {\em vresult})}\label{group__Basics_gf89559e0f66d0eaaab1a2d4ad108a4ed}


Multiply a polar vector by a scalar and return the result. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em v1}]Reference to a polar vector. \item[{\em alpha}]The multiplying scalar. \item[{\em vresult}]Reference to a cartesian vector to store 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}
\[ \vec V_{result} = \alpha\vec V_1 \] 

Definition at line 97 of file vect2.c.

References \_\-vect2\_\-pol::r.\index{Basics@{Basics}!vect2\_\-sub\_\-cart@{vect2\_\-sub\_\-cart}}
\index{vect2\_\-sub\_\-cart@{vect2\_\-sub\_\-cart}!Basics@{Basics}}
\subsubsection[vect2\_\-sub\_\-cart]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-sub\_\-cart ({\bf vect2\_\-cart} $\ast$ {\em v1}, \/  {\bf vect2\_\-cart} $\ast$ {\em v2}, \/  {\bf vect2\_\-cart} $\ast$ {\em vresult})}\label{group__Basics_g2c1c6723a2ef8305a248bfd51bc26afe}


Substract 2 cartesian vectors and return the result. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em v1}]Reference to a cartesian vector to substract. \item[{\em v2}]Reference to a cartesian vector to substract. \item[{\em vresult}]Reference to a cartesian vector to store 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}
\[ \vec V_{result} = \vec V_1 - \vec V_2 \] 

Definition at line 78 of file vect2.c.

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

Referenced by vect2\_\-sub\_\-pol().\index{Basics@{Basics}!vect2\_\-sub\_\-pol@{vect2\_\-sub\_\-pol}}
\index{vect2\_\-sub\_\-pol@{vect2\_\-sub\_\-pol}!Basics@{Basics}}
\subsubsection[vect2\_\-sub\_\-pol]{\setlength{\rightskip}{0pt plus 5cm}void vect2\_\-sub\_\-pol ({\bf vect2\_\-pol} $\ast$ {\em v1}, \/  {\bf vect2\_\-pol} $\ast$ {\em v2}, \/  {\bf vect2\_\-pol} $\ast$ {\em vresult})}\label{group__Basics_g5599dbf90bf536d24c77dc33aece5874}


Substract 2 polar vectors and return the result. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em v1}]Reference to a polar vector to substract. \item[{\em v2}]Reference to a polar vector to substract. \item[{\em vresult}]Reference to a polar vector to store the result. \end{description}
\end{Desc}
\begin{Desc}
\item[Warning:]This function doesn't do any Real R = 1.45064930529587234; Real theta = 0.6734390282904231341;malloc ! You have to allocate structures before calling this function. \end{Desc}
\begin{Desc}
\item[Note:]This function convert the 2 entry vectors to cartesian, substract them and then convert the result to polar. So please think before using it.\end{Desc}
\[ \vec V_{result} = \vec V_1 - \vec V_2 \] 

Definition at line 60 of file vect2.c.

References vect2\_\-cart2pol(), vect2\_\-pol2cart(), and vect2\_\-sub\_\-cart().