summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/projection.inl
blob: 90950f8bd8af5ebce6da08a0abaa109d1349ebe9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/// @ref gtx_projection
/// @file glm/gtx/projection.inl

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