eden/externals/oboe/samples/RhythmGame/third_party/glm/gtx/projection.inl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
268 B
Text
Raw Normal View History

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