0.9.6
func_exponential.hpp
Go to the documentation of this file.
1 
36 #pragma once
37 
38 #include "type_vec1.hpp"
39 #include "type_vec2.hpp"
40 #include "type_vec3.hpp"
41 #include "type_vec4.hpp"
42 #include <cmath>
43 
44 namespace glm
45 {
48 
57  template <typename T, precision P, template <typename, precision> class vecType>
58  GLM_FUNC_DECL vecType<T, P> pow(vecType<T, P> const & base, vecType<T, P> const & exponent);
59 
67  template <typename T, precision P, template <typename, precision> class vecType>
68  GLM_FUNC_DECL vecType<T, P> exp(vecType<T, P> const & v);
69 
79  template <typename T, precision P, template <typename, precision> class vecType>
80  GLM_FUNC_DECL vecType<T, P> log(vecType<T, P> const & v);
81 
89  template <typename T, precision P, template <typename, precision> class vecType>
90  GLM_FUNC_DECL vecType<T, P> exp2(vecType<T, P> const & v);
91 
100  template <typename T, precision P, template <typename, precision> class vecType>
101  GLM_FUNC_DECL vecType<T, P> log2(vecType<T, P> const & v);
102 
110  //template <typename genType>
111  //GLM_FUNC_DECL genType sqrt(genType const & x);
112  template <typename T, precision P, template <typename, precision> class vecType>
113  GLM_FUNC_DECL vecType<T, P> sqrt(vecType<T, P> const & v);
114 
122  template <typename T, precision P, template <typename, precision> class vecType>
123  GLM_FUNC_DECL vecType<T, P> inversesqrt(vecType<T, P> const & v);
124 
126 }//namespace glm
127 
128 #include "func_exponential.inl"
OpenGL Mathematics (glm.g-truc.net)
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 > 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_FUNC_DECL vecType< T, P > inversesqrt(vecType< T, P > const &v)
Returns the reciprocal of the positive square root of v.
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_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &v)
Returns the positive square root of v.
GLM_FUNC_DECL vecType< T, P > pow(vecType< T, P > const &base, vecType< T, P > const &exponent)
Returns 'base' raised to the power 'exponent'.
Definition: _noise.hpp:31
OpenGL Mathematics (glm.g-truc.net)
OpenGL Mathematics (glm.g-truc.net)
GLM_FUNC_DECL vecType< T, P > exp2(vecType< T, P > const &v)
Returns 2 raised to the v power.
OpenGL Mathematics (glm.g-truc.net)