glm/glm/gtx/projection.inl
2017-08-15 21:23:47 +02:00

12 lines
265 B
C++

/// @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