• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/// @ref gtx_projection
2/// @file glm/gtx/projection.inl
3
4namespace glm
5{
6	template <typename vecType>
7	GLM_FUNC_QUALIFIER vecType proj(vecType const & x, vecType const & Normal)
8	{
9		return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
10	}
11}//namespace glm
12