• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /// @brief Logarithm for any base. base can be a vector or a scalar.
10 ///
11 /// <glm/gtx/log_base.hpp> need to be included to use these functionalities.
12 
13 #pragma once
14 
15 // Dependency:
16 #include "../glm.hpp"
17 
18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
19 #	pragma message("GLM: GLM_GTX_log_base extension included")
20 #endif
21 
22 namespace glm
23 {
24 	/// @addtogroup gtx_log_base
25 	/// @{
26 
27 	/// Logarithm for any base.
28 	/// From GLM_GTX_log_base.
29 	template <typename genType>
30 	GLM_FUNC_DECL genType log(
31 		genType const & x,
32 		genType const & base);
33 
34 	/// Logarithm for any base.
35 	/// From GLM_GTX_log_base.
36 	template <typename T, precision P, template <typename, precision> class vecType>
37 	GLM_FUNC_DECL vecType<T, P> sign(
38 		vecType<T, P> const & x,
39 		vecType<T, P> const & base);
40 
41 	/// @}
42 }//namespace glm
43 
44 #include "log_base.inl"
45