0.9.9 API documenation
func_exponential.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "type_vec1.hpp"
14 #include "type_vec2.hpp"
15 #include "type_vec3.hpp"
16 #include "type_vec4.hpp"
17 #include <cmath>
18 
19 namespace glm
20 {
23 
32  template <typename T, precision P, template <typename, precision> class vecType>
33  GLM_FUNC_DECL vecType<T, P> pow(vecType<T, P> const & base, vecType<T, P> const & exponent);
34 
42  template <typename T, precision P, template <typename, precision> class vecType>
43  GLM_FUNC_DECL vecType<T, P> exp(vecType<T, P> const & v);
44 
54  template <typename T, precision P, template <typename, precision> class vecType>
55  GLM_FUNC_DECL vecType<T, P> log(vecType<T, P> const & v);
56 
64  template <typename T, precision P, template <typename, precision> class vecType>
65  GLM_FUNC_DECL vecType<T, P> exp2(vecType<T, P> const & v);
66 
75  template <typename T, precision P, template <typename, precision> class vecType>
76  GLM_FUNC_DECL vecType<T, P> log2(vecType<T, P> const & v);
77 
85  //template <typename genType>
86  //GLM_FUNC_DECL genType sqrt(genType const & x);
87  template <typename T, precision P, template <typename, precision> class vecType>
88  GLM_FUNC_DECL vecType<T, P> sqrt(vecType<T, P> const & v);
89 
97  template <typename T, precision P, template <typename, precision> class vecType>
98  GLM_FUNC_DECL vecType<T, P> inversesqrt(vecType<T, P> const & v);
99 
101 }//namespace glm
102 
103 #include "func_exponential.inl"
GLM_FUNC_DECL vecType< T, P > exp(vecType< T, P > const &v)
Returns the natural exponentiation of x, i.e., e^x.
GLM_FUNC_DECL vecType< T, P > log(vecType< T, P > const &v)
Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y...
GLM Core
GLM Core
GLM Core
GLM_FUNC_DECL vecType< T, P > inversesqrt(vecType< T, P > const &v)
Returns the reciprocal of the positive square root of v.
Definition: _noise.hpp:11
GLM_FUNC_DECL vecType< T, P > pow(vecType< T, P > const &base, vecType< T, P > const &exponent)
Returns 'base' raised to the power 'exponent'.
GLM_FUNC_DECL vecType< T, P > log2(vecType< T, P > const &v)
Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y...
GLM Core
GLM_FUNC_DECL vecType< T, P > exp2(vecType< T, P > const &v)
Returns 2 raised to the v power.
GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &v)
Returns the positive square root of v.