log_base.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /// @ref gtx_log_base
  2. /// @file glm/gtx/log_base.hpp
  3. ///
  4. /// @see core (dependence)
  5. ///
  6. /// @defgroup gtx_log_base GLM_GTX_log_base
  7. /// @ingroup gtx
  8. ///
  9. /// Include <glm/gtx/log_base.hpp> to use the features of this extension.
  10. ///
  11. /// Logarithm for any base. base can be a vector or a scalar.
  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_log_base 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_log_base extension included")
  20. # endif
  21. #endif
  22. namespace glm
  23. {
  24. /// @addtogroup gtx_log_base
  25. /// @{
  26. /// Logarithm for any base.
  27. /// From GLM_GTX_log_base.
  28. template<typename genType>
  29. GLM_FUNC_DECL genType log(
  30. genType const& x,
  31. genType const& base);
  32. /// Logarithm for any base.
  33. /// From GLM_GTX_log_base.
  34. template<length_t L, typename T, qualifier Q>
  35. GLM_FUNC_DECL vec<L, T, Q> sign(
  36. vec<L, T, Q> const& x,
  37. vec<L, T, Q> const& base);
  38. /// @}
  39. }//namespace glm
  40. #include "log_base.inl"