projection.inl 232 B

12345678910
  1. /// @ref gtx_projection
  2. namespace glm
  3. {
  4. template<typename genType>
  5. GLM_FUNC_QUALIFIER genType proj(genType const& x, genType const& Normal)
  6. {
  7. return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
  8. }
  9. }//namespace glm