glSpline/glm/gtx/projection.inl
2018-09-12 18:53:34 +02:00

12 lines
267 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