\section{aversive\_\-10-03-12/modules/base/math/vect2/vect2.c File Reference}
\label{vect2_8c}\index{aversive\_\-10-03-12/modules/base/math/vect2/vect2.c@{aversive\_\-10-03-12/modules/base/math/vect2/vect2.c}}
{\tt \#include \char`\"{}vect2.h\char`\"{}}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$math.h$>$}\par
\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}\item 
void {\bf vect2\_\-add\_\-pol} ({\bf vect2\_\-pol} $\ast$vp1, {\bf vect2\_\-pol} $\ast$vp2, {\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$vc1, {\bf vect2\_\-cart} $\ast$vc2, {\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$vp1, {\bf vect2\_\-pol} $\ast$vp2, {\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$vc1, {\bf vect2\_\-cart} $\ast$vc2, {\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$vc1, {\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$vp1, {\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}
