9
3

projection.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /// @ref gtx_projection
  2. /// @file glm/gtx/projection.hpp
  3. ///
  4. /// @see core (dependence)
  5. ///
  6. /// @defgroup gtx_projection GLM_GTX_projection
  7. /// @ingroup gtx
  8. ///
  9. /// Include <glm/gtx/projection.hpp> to use the features of this extension.
  10. ///
  11. /// Projection of a vector to other one
  12. #pragma once
  13. // Dependency:
  14. #include "../geometric.hpp"
  15. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  16. # ifndef GLM_ENABLE_EXPERIMENTAL
  17. # pragma message("GLM: GLM_GTX_projection is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
  18. # else
  19. # pragma message("GLM: GLM_GTX_projection extension included")
  20. # endif
  21. #endif
  22. namespace glm
  23. {
  24. /// @addtogroup gtx_projection
  25. /// @{
  26. /// Projects x on Normal.
  27. ///
  28. /// @param[in] x A vector to project
  29. /// @param[in] Normal A normal that doesn't need to be of unit length.
  30. ///
  31. /// @see gtx_projection
  32. template<typename genType>
  33. GLM_FUNC_DECL genType proj(genType const& x, genType const& Normal);
  34. /// @}
  35. }//namespace glm
  36. #include "projection.inl"