blob: 90950f8bd8af5ebce6da08a0abaa109d1349ebe9 (
plain) (
tree)
|
|
/// @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
|