\hypertarget{a01052}{\section{prototype\+Vec3d Class Reference}
\label{a01052}\index{prototype\+Vec3d@{prototype\+Vec3d}}
}


{\ttfamily \#include $<$Open\+Flipper/\+Scripting/script\+Prototypes/prototype\+Vec3d.\+hh$>$}

Inheritance diagram for prototype\+Vec3d\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01052}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a01052_ad0915433db2ac61ffea135f6f28309bc}{multiply} (Q\+Script\+Value \+\_\+scalar)
\begin{DoxyCompactList}\small\item\em Multiplies the given vector with the scalar. \end{DoxyCompactList}\item 
void \hyperlink{a01052_af9df638c8c34966dd302eee29b18ebfa}{add} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Adds another vector to this vector. \end{DoxyCompactList}\item 
void \hyperlink{a01052_a89d7c7a0f78a52dd323ead06737b953f}{sub} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Subtracts another vector from this vector. \end{DoxyCompactList}\item 
void \hyperlink{a01052_a571d90cdbf156f8388889f6742fbf9fd}{zero} ()
\begin{DoxyCompactList}\small\item\em Resets all components of the vector to zero. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a01052_a4cf42b813467a657d719be9926fb17a7}{sprod} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Calculate scalar product. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a01052_a865e9e1a7d398b49124dd55743b8e57d}{norm} ()
\begin{DoxyCompactList}\small\item\em Calculate the Euclidean norm of the vector. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a01052_a899abb1a26fd93ec117c3669b8949576}{sqrnorm} ()
\begin{DoxyCompactList}\small\item\em Calculate the squared Euclidean norm of the vector. \end{DoxyCompactList}\item 
\hypertarget{a01052_a3fabe93e73398f9e2aadcc0e4b7df363}{void \hyperlink{a01052_a3fabe93e73398f9e2aadcc0e4b7df363}{normalize} ()}\label{a01052_a3fabe93e73398f9e2aadcc0e4b7df363}

\begin{DoxyCompactList}\small\item\em Normalize the vector. \end{DoxyCompactList}\item 
\hypertarget{a01052_a0566ced081cfce8769b62ecf06e3e52b}{Q\+String {\bfseries to\+String} () const }\label{a01052_a0566ced081cfce8769b62ecf06e3e52b}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01052_adf0c8d78c60e1db09ec504aeba0a468d}{{\bfseries prototype\+Vec3d} (Q\+Object $\ast$parent=0)}\label{a01052_adf0c8d78c60e1db09ec504aeba0a468d}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class wraps the Vec3d to the scripting language

\hyperlink{scripting_vector_type}{Vector data type for scripting} 

Definition at line 105 of file prototype\+Vec3d.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01052_af9df638c8c34966dd302eee29b18ebfa}{\index{prototype\+Vec3d@{prototype\+Vec3d}!add@{add}}
\index{add@{add}!prototype\+Vec3d@{prototype\+Vec3d}}
\subsubsection[{add}]{\setlength{\rightskip}{0pt plus 5cm}void prototype\+Vec3d\+::add (
\begin{DoxyParamCaption}
\item[{Q\+Script\+Value}]{\+\_\+vector}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a01052_af9df638c8c34966dd302eee29b18ebfa}


Adds another vector to this vector. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+vector} & Vector that should be added \\
\hline
\end{DoxyParams}


Definition at line 85 of file prototype\+Vec3d.\+cc.

\hypertarget{a01052_ad0915433db2ac61ffea135f6f28309bc}{\index{prototype\+Vec3d@{prototype\+Vec3d}!multiply@{multiply}}
\index{multiply@{multiply}!prototype\+Vec3d@{prototype\+Vec3d}}
\subsubsection[{multiply}]{\setlength{\rightskip}{0pt plus 5cm}void prototype\+Vec3d\+::multiply (
\begin{DoxyParamCaption}
\item[{Q\+Script\+Value}]{\+\_\+scalar}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a01052_ad0915433db2ac61ffea135f6f28309bc}


Multiplies the given vector with the scalar. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+scalar} & Scalar value that gets multiplied \\
\hline
\end{DoxyParams}


Definition at line 79 of file prototype\+Vec3d.\+cc.

\hypertarget{a01052_a865e9e1a7d398b49124dd55743b8e57d}{\index{prototype\+Vec3d@{prototype\+Vec3d}!norm@{norm}}
\index{norm@{norm}!prototype\+Vec3d@{prototype\+Vec3d}}
\subsubsection[{norm}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Script\+Value prototype\+Vec3d\+::norm (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a01052_a865e9e1a7d398b49124dd55743b8e57d}


Calculate the Euclidean norm of the vector. 

\begin{DoxyReturn}{Returns}
Norm of the vector 
\end{DoxyReturn}


Definition at line 111 of file prototype\+Vec3d.\+cc.

\hypertarget{a01052_a4cf42b813467a657d719be9926fb17a7}{\index{prototype\+Vec3d@{prototype\+Vec3d}!sprod@{sprod}}
\index{sprod@{sprod}!prototype\+Vec3d@{prototype\+Vec3d}}
\subsubsection[{sprod}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Script\+Value prototype\+Vec3d\+::sprod (
\begin{DoxyParamCaption}
\item[{Q\+Script\+Value}]{\+\_\+vector}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a01052_a4cf42b813467a657d719be9926fb17a7}


Calculate scalar product. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+vector} & Second vector for scalar product (Can be the vector itself) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Scalar product value 
\end{DoxyReturn}


Definition at line 104 of file prototype\+Vec3d.\+cc.

\hypertarget{a01052_a899abb1a26fd93ec117c3669b8949576}{\index{prototype\+Vec3d@{prototype\+Vec3d}!sqrnorm@{sqrnorm}}
\index{sqrnorm@{sqrnorm}!prototype\+Vec3d@{prototype\+Vec3d}}
\subsubsection[{sqrnorm}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Script\+Value prototype\+Vec3d\+::sqrnorm (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a01052_a899abb1a26fd93ec117c3669b8949576}


Calculate the squared Euclidean norm of the vector. 

\begin{DoxyReturn}{Returns}
Squared norm of the vector 
\end{DoxyReturn}


Definition at line 117 of file prototype\+Vec3d.\+cc.

\hypertarget{a01052_a89d7c7a0f78a52dd323ead06737b953f}{\index{prototype\+Vec3d@{prototype\+Vec3d}!sub@{sub}}
\index{sub@{sub}!prototype\+Vec3d@{prototype\+Vec3d}}
\subsubsection[{sub}]{\setlength{\rightskip}{0pt plus 5cm}void prototype\+Vec3d\+::sub (
\begin{DoxyParamCaption}
\item[{Q\+Script\+Value}]{\+\_\+vector}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a01052_a89d7c7a0f78a52dd323ead06737b953f}


Subtracts another vector from this vector. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+vector} & Vector that should be subtracted \\
\hline
\end{DoxyParams}


Definition at line 92 of file prototype\+Vec3d.\+cc.

\hypertarget{a01052_a571d90cdbf156f8388889f6742fbf9fd}{\index{prototype\+Vec3d@{prototype\+Vec3d}!zero@{zero}}
\index{zero@{zero}!prototype\+Vec3d@{prototype\+Vec3d}}
\subsubsection[{zero}]{\setlength{\rightskip}{0pt plus 5cm}void prototype\+Vec3d\+::zero (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [slot]}}}\label{a01052_a571d90cdbf156f8388889f6742fbf9fd}


Resets all components of the vector to zero. 



Definition at line 98 of file prototype\+Vec3d.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Scripting/script\+Prototypes/prototype\+Vec3d.\+hh\item 
Open\+Flipper/\+Scripting/script\+Prototypes/prototype\+Vec3d.\+cc\end{DoxyCompactItemize}
