9
3

extend.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /// @ref gtx_extend
  2. /// @file glm/gtx/extend.hpp
  3. ///
  4. /// @see core (dependence)
  5. ///
  6. /// @defgroup gtx_extend GLM_GTX_extend
  7. /// @ingroup gtx
  8. ///
  9. /// Include <glm/gtx/extend.hpp> to use the features of this extension.
  10. ///
  11. /// Extend a position from a source to a position at a defined length.
  12. #pragma once
  13. // Dependency:
  14. #include "../glm.hpp"
  15. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  16. # ifndef GLM_ENABLE_EXPERIMENTAL
  17. # pragma message("GLM: GLM_GTX_extend 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_extend extension included")
  20. # endif
  21. #endif
  22. namespace glm
  23. {
  24. /// @addtogroup gtx_extend
  25. /// @{
  26. /// Extends of Length the Origin position using the (Source - Origin) direction.
  27. /// @see gtx_extend
  28. template<typename genType>
  29. GLM_FUNC_DECL genType extend(
  30. genType const& Origin,
  31. genType const& Source,
  32. typename genType::value_type const Length);
  33. /// @}
  34. }//namespace glm
  35. #include "extend.inl"