\hypertarget{a01053}{\section{prototype\+Vec4d Class Reference}
\label{a01053}\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]{a01053}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a01053_a7636d642c2ca3bb03baecfe93b922eb3}{multiply} (Q\+Script\+Value \+\_\+scalar)
\begin{DoxyCompactList}\small\item\em Multiplies the given vector with the scalar. \end{DoxyCompactList}\item 
void \hyperlink{a01053_a66f28e6f4a58f6f537c90ce26e3bfb44}{add} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Adds another vector to this vector. \end{DoxyCompactList}\item 
void \hyperlink{a01053_a13a1b9c59b4eef0dbec7cb1c3cf43717}{sub} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Subtracts another vector from this vector. \end{DoxyCompactList}\item 
void \hyperlink{a01053_aa65fc1bd5f995e6580f339e9da1c4a52}{zero} ()
\begin{DoxyCompactList}\small\item\em Resets all components of the vector to zero. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a01053_a9113173d7a6238251c75d890c3f23440}{sprod} (Q\+Script\+Value \+\_\+vector)
\begin{DoxyCompactList}\small\item\em Calculate scalar product. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a01053_a044e5ba83d6799b7f6bd078c3e0902ec}{norm} ()
\begin{DoxyCompactList}\small\item\em Calculate the Euclidean norm of the vector. \end{DoxyCompactList}\item 
Q\+Script\+Value \hyperlink{a01053_adbeb4da74cf0cbfd5176b0b3469f53f8}{sqrnorm} ()
\begin{DoxyCompactList}\small\item\em Calculate the squared Euclidean norm of the vector. \end{DoxyCompactList}\item 
\hypertarget{a01053_afbab6c6c302bb2afae3d3e1a8f535f36}{void \hyperlink{a01053_afbab6c6c302bb2afae3d3e1a8f535f36}{normalize} ()}\label{a01053_afbab6c6c302bb2afae3d3e1a8f535f36}

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

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

\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 105 of file prototype\+Vec4d.\+hh.



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


Adds another vector to this vector. 


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


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

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


Multiplies the given vector with the scalar. 


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


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

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


Calculate the Euclidean norm of the vector. 

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


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

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


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

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


Calculate the squared Euclidean norm of the vector. 

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


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

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


Subtracts another vector from this vector. 


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


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

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


Resets all components of the vector to zero. 



Definition at line 102 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}
