Grafika2023/PlanetCreator/dependencies/glm/gtx/projection.inl

12 lines
279 B
Plaintext
Raw Normal View History

2023-12-18 17:00:22 +01:00
/// @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