projection.inl 242 B

1234567891011
  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