1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net)
3
///////////////////////////////////////////////////////////////////////////////////////////////////
4
// Created : 2005-12-21
5
// Updated : 2009-03-06
6
// Licence : This source is under MIT License
7
// File : glm/gtx/projection.inl
8
///////////////////////////////////////////////////////////////////////////////////////////////////
12
template <typename vecType>
13
GLM_FUNC_QUALIFIER vecType proj
16
vecType const & Normal
19
return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;