grafika-projekt/dependencies/glm/gtx/projection.inl
Szymon Bartanowicz 27aa9b51ea init
2023-02-14 22:54:46 +01:00

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