<gh_stars>1-10
\hypertarget{group__gtx__projection}{
\section{GLM\_\-GTX\_\-projection}
\label{group__gtx__projection}\index{GLM\_\-GTX\_\-projection@{GLM\_\-GTX\_\-projection}}
}


Collaboration diagram for GLM\_\-GTX\_\-projection:Projection of a vector to other one.  
\subsection*{Functions}
\begin{CompactItemize}
\item 
{\footnotesize template$<$typename vecType$>$ }\\GLM\_\-FUNC\_\-DECL vecType \hyperlink{group__gtx__projection_g2a2ab28abbc6fa33c226ea8dd9ccd8cd}{glm::proj} (vecType const \&x, vecType const \&Normal)
\end{CompactItemize}


\subsection{Detailed Description}
Projection of a vector to other one. 

$<$glm/gtx/projection.hpp$>$ need to be included to use these functionalities. 

\subsection{Function Documentation}
\hypertarget{group__gtx__projection_g2a2ab28abbc6fa33c226ea8dd9ccd8cd}{
\index{gtx\_\-projection@{gtx\_\-projection}!proj@{proj}}
\index{proj@{proj}!gtx_projection@{gtx\_\-projection}}
\subsubsection[proj]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename vecType$>$ GLM\_\-FUNC\_\-QUALIFIER vecType glm::proj (vecType const \& {\em x}, \/  vecType const \& {\em Normal})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{group__gtx__projection_g2a2ab28abbc6fa33c226ea8dd9ccd8cd}


Projects x on Normal. From GLM\_\-GTX\_\-projection extension. 

Definition at line 14 of file projection.inl.

References glm::dot().

Referenced by glm::perp().

\begin{Code}\begin{verbatim}18         {
19                 return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
20         }
\end{verbatim}
\end{Code}




Here is the call graph for this function:

Here is the caller graph for this function: