mirror of
https://github.com/g-truc/glm.git
synced 2024-12-02 04:34:34 +00:00
12 lines
265 B
C++
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
|