summaryrefslogblamecommitdiffstats
path: root/external/include/glm/gtx/projection.inl
blob: d21fe83d571ac6453f9f7144eb871f09f47b8f4e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                  
/// @ref gtx_projection
/// @file glm/gtx/projection.inl

namespace glm
{
	template <typename vecType>
	GLM_FUNC_QUALIFIER vecType proj(vecType const & x, vecType const & Normal)
	{
		return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
	}
}//namespace glm