aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/glm/gtx/projection.inl
blob: afdd2c3d5229e60f3b4a469f00ed9c102de2c106 (plain)
1
2
3
4
5
6
7
8
9
10
/// @ref gtx_projection

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