\hypertarget{a09752}{}\section{prototype\+Vec4d Class Reference}
\label{a09752}\index{prototype\+Vec4d@{prototype\+Vec4d}}


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

Inheritance diagram for prototype\+Vec4d\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a09752}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a09752_a7636d642c2ca3bb03baecfe93b922eb3}{multiply} (Q\+Script\+Value \+\_\+scalar)
\begin{DoxyCompactList}\small\item\em Multiplies the given vector with the scalar. \end{DoxyCompactList}\item 
void \hyperlink{a09752_a66f28e6f4a58f6f537c90ce26e3bfb44}{add} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Adds another vector to this vector. \end{DoxyCompactList}\item 
void \hyperlink{a09752_a13a1b9c59b4eef0dbec7cb1c3cf43717}{sub} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Subtracts another vector from this vector. \end{DoxyCompactList}\item 
void \hyperlink{a09752_aa65fc1bd5f995e6580f339e9da1c4a52}{zero} ()
\begin{DoxyCompactList}\small\item\em Resets all components of the vector to zero. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a09752_a9113173d7a6238251c75d890c3f23440}{sprod} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Calculate scalar product. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a09752_a044e5ba83d6799b7f6bd078c3e0902ec}{norm} ()
\begin{DoxyCompactList}\small\item\em Calculate the Euclidean norm of the vector. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a09752_adbeb4da74cf0cbfd5176b0b3469f53f8}{sqrnorm} ()
\begin{DoxyCompactList}\small\item\em Calculate the squared Euclidean norm of the vector. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09752_afbab6c6c302bb2afae3d3e1a8f535f36}\label{a09752_afbab6c6c302bb2afae3d3e1a8f535f36}} 
void \hyperlink{a09752_afbab6c6c302bb2afae3d3e1a8f535f36}{normalize} ()
\begin{DoxyCompactList}\small\item\em Normalize the vector. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09752_ad93f88bb6cdfa2c3eff157ca788b9520}\label{a09752_ad93f88bb6cdfa2c3eff157ca788b9520}} 
Q\+String {\bfseries to\+String} () const
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09752_a390d84c84006a778966db26083545836}\label{a09752_a390d84c84006a778966db26083545836}} 
{\bfseries prototype\+Vec4d} (Q\+Object $\ast$parent=0)
\end{DoxyCompactItemize}


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

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

Definition at line 85 of file prototype\+Vec4d.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a09752_a66f28e6f4a58f6f537c90ce26e3bfb44}\label{a09752_a66f28e6f4a58f6f537c90ce26e3bfb44}} 
\index{prototype\+Vec4d@{prototype\+Vec4d}!add@{add}}
\index{add@{add}!prototype\+Vec4d@{prototype\+Vec4d}}
\subsubsection{\texorpdfstring{add}{add}}
{\footnotesize\ttfamily void prototype\+Vec4d\+::add (\begin{DoxyParamCaption}\item[{Q\+Script\+Value}]{\+\_\+vector }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



Adds another vector to this vector. 


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


Definition at line 67 of file prototype\+Vec4d.\+cc.

\mbox{\Hypertarget{a09752_a7636d642c2ca3bb03baecfe93b922eb3}\label{a09752_a7636d642c2ca3bb03baecfe93b922eb3}} 
\index{prototype\+Vec4d@{prototype\+Vec4d}!multiply@{multiply}}
\index{multiply@{multiply}!prototype\+Vec4d@{prototype\+Vec4d}}
\subsubsection{\texorpdfstring{multiply}{multiply}}
{\footnotesize\ttfamily void prototype\+Vec4d\+::multiply (\begin{DoxyParamCaption}\item[{Q\+Script\+Value}]{\+\_\+scalar }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



Multiplies the given vector with the scalar. 


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


Definition at line 60 of file prototype\+Vec4d.\+cc.

\mbox{\Hypertarget{a09752_a044e5ba83d6799b7f6bd078c3e0902ec}\label{a09752_a044e5ba83d6799b7f6bd078c3e0902ec}} 
\index{prototype\+Vec4d@{prototype\+Vec4d}!norm@{norm}}
\index{norm@{norm}!prototype\+Vec4d@{prototype\+Vec4d}}
\subsubsection{\texorpdfstring{norm}{norm}}
{\footnotesize\ttfamily Q\+Script\+Value prototype\+Vec4d\+::norm (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



Calculate the Euclidean norm of the vector. 

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


Definition at line 97 of file prototype\+Vec4d.\+cc.

\mbox{\Hypertarget{a09752_a9113173d7a6238251c75d890c3f23440}\label{a09752_a9113173d7a6238251c75d890c3f23440}} 
\index{prototype\+Vec4d@{prototype\+Vec4d}!sprod@{sprod}}
\index{sprod@{sprod}!prototype\+Vec4d@{prototype\+Vec4d}}
\subsubsection{\texorpdfstring{sprod}{sprod}}
{\footnotesize\ttfamily Q\+Script\+Value prototype\+Vec4d\+::sprod (\begin{DoxyParamCaption}\item[{Q\+Script\+Value}]{\+\_\+vector }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



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 89 of file prototype\+Vec4d.\+cc.

\mbox{\Hypertarget{a09752_adbeb4da74cf0cbfd5176b0b3469f53f8}\label{a09752_adbeb4da74cf0cbfd5176b0b3469f53f8}} 
\index{prototype\+Vec4d@{prototype\+Vec4d}!sqrnorm@{sqrnorm}}
\index{sqrnorm@{sqrnorm}!prototype\+Vec4d@{prototype\+Vec4d}}
\subsubsection{\texorpdfstring{sqrnorm}{sqrnorm}}
{\footnotesize\ttfamily Q\+Script\+Value prototype\+Vec4d\+::sqrnorm (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



Calculate the squared Euclidean norm of the vector. 

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


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

\mbox{\Hypertarget{a09752_a13a1b9c59b4eef0dbec7cb1c3cf43717}\label{a09752_a13a1b9c59b4eef0dbec7cb1c3cf43717}} 
\index{prototype\+Vec4d@{prototype\+Vec4d}!sub@{sub}}
\index{sub@{sub}!prototype\+Vec4d@{prototype\+Vec4d}}
\subsubsection{\texorpdfstring{sub}{sub}}
{\footnotesize\ttfamily void prototype\+Vec4d\+::sub (\begin{DoxyParamCaption}\item[{Q\+Script\+Value}]{\+\_\+vector }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



Subtracts another vector from this vector. 


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


Definition at line 75 of file prototype\+Vec4d.\+cc.

\mbox{\Hypertarget{a09752_aa65fc1bd5f995e6580f339e9da1c4a52}\label{a09752_aa65fc1bd5f995e6580f339e9da1c4a52}} 
\index{prototype\+Vec4d@{prototype\+Vec4d}!zero@{zero}}
\index{zero@{zero}!prototype\+Vec4d@{prototype\+Vec4d}}
\subsubsection{\texorpdfstring{zero}{zero}}
{\footnotesize\ttfamily void prototype\+Vec4d\+::zero (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [slot]}}



Resets all components of the vector to zero. 



Definition at line 82 of file prototype\+Vec4d.\+cc.



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