GLM  0.9.5
func_exponential.hpp
1 
36 #ifndef glm_core_func_exponential
37 #define glm_core_func_exponential
38 
39 #include "type_vec1.hpp"
40 #include "type_vec2.hpp"
41 #include "type_vec3.hpp"
42 #include "type_vec4.hpp"
43 #include <cmath>
44 
45 namespace glm
46 {
49 
58  template <typename genType>
59  GLM_FUNC_DECL genType pow(genType const & base, genType const & exponent);
60 
68  template <typename genType>
69  GLM_FUNC_DECL genType exp(genType const & x);
70 
80  template <typename genType>
81  GLM_FUNC_DECL genType log(genType const & x);
82 
90  template <typename genType>
91  GLM_FUNC_DECL genType exp2(genType const & x);
92 
101  template <typename genType>
102  GLM_FUNC_DECL genType log2(genType const & x);
103 
111  template <typename genType>
112  GLM_FUNC_DECL genType sqrt(genType const & x);
113 
121  template <typename genType>
122  GLM_FUNC_DECL genType inversesqrt(genType const & x);
123 
125 }//namespace glm
126 
127 #include "func_exponential.inl"
128 
129 #endif//glm_core_func_exponential
GLM_FUNC_DECL genType sqrt(genType const &x)
Returns the positive square root of x.
GLM_FUNC_DECL genType inversesqrt(genType const &x)
Returns the reciprocal of the positive square root of x.
GLM_FUNC_DECL genType exp(genType const &x)
Returns the natural exponentiation of x, i.e., e^x.
GLM_FUNC_DECL genType log2(genType const &x)
Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y...
GLM_FUNC_DECL genType pow(genType const &base, genType const &exponent)
Returns &#39;base&#39; raised to the power &#39;exponent&#39;.
GLM_FUNC_DECL genType exp2(genType const &x)
Returns 2 raised to the x power.
GLM_FUNC_DECL genType log(genType const &x)
Returns the natural logarithm of x, i.e., returns the value y which satisfies the equation x = e^y...