Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
265B

  1. /// @ref gtx_projection
  2. /// @file glm/gtx/projection.inl
  3. namespace 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