17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 08:30:23 +01:00
Files
maszyna/ref/glm/glm/gtx/projection.inl
2018-10-12 17:45:01 +02:00

12 lines
265 B
C++

/// @ref gtx_projection
/// @file glm/gtx/projection.inl
namespace glm
{
template<typename genType>
GLM_FUNC_QUALIFIER genType proj(genType const& x, genType const& Normal)
{
return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
}
}//namespace glm