dungeon/libs/glm/gtx/projection.inl
2017-09-17 14:45:57 +02:00

11 lines
279 B
C++

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