master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / projection.inl
232 B、10行 生 Blame 履歴
1/// @ref gtx_projection
2
3namespace glm
4{
5 template<typename genType>
6 GLM_FUNC_QUALIFIER genType proj(genType const& x, genType const& Normal)
7 {
8 return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
9 }
10}//namespace glm