log_base.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef GLM_ENABLE_EXPERIMENTAL
  16. # error "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."
  17. #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  18. # pragma message("GLM: GLM_GTX_log_base extension included")
  19. #endif
  20. namespace glm
  21. {
  22. /// @addtogroup gtx_log_base
  23. /// @{
  24. /// Logarithm for any base.
  25. /// From GLM_GTX_log_base.
  26. template<typename genType>
  27. GLM_FUNC_DECL genType log(
  28. genType const& x,
  29. genType const& base);
  30. /// Logarithm for any base.
  31. /// From GLM_GTX_log_base.
  32. template<length_t L, typename T, qualifier Q>
  33. GLM_FUNC_DECL vec<L, T, Q> sign(
  34. vec<L, T, Q> const& x,
  35. vec<L, T, Q> const& base);
  36. /// @}
  37. }//namespace glm
  38. #include "log_base.inl"