| 0.9.7

- Main Page
- Modules
- Files

- File List

func_exponential.hpp
Go to the documentation of this file.
1
40 #pragma once
41
42 #include "type_vec1.hpp"
43 #include "type_vec2.hpp"
44 #include "type_vec3.hpp"
45 #include "type_vec4.hpp"
46 #include <cmath>
47
48 namespace glm
49 {
52
61 template <typename T, precision P, template <typename, precision> class vecType>
62 GLM_FUNC_DECL vecType<T, P> pow(vecType<T, P> const & base, vecType<T, P> const & exponent);
63
71 template <typename T, precision P, template <typename, precision> class vecType>
72 GLM_FUNC_DECL vecType<T, P> exp(vecType<T, P> const & v);
73
83 template <typename T, precision P, template <typename, precision> class vecType>
84 GLM_FUNC_DECL vecType<T, P> log(vecType<T, P> const & v);
85
93 template <typename T, precision P, template <typename, precision> class vecType>
94 GLM_FUNC_DECL vecType<T, P> exp2(vecType<T, P> const & v);
95
104 template <typename T, precision P, template <typename, precision> class vecType>
105 GLM_FUNC_DECL vecType<T, P> log2(vecType<T, P> const & v);
106
114 //template <typename genType>
115 //GLM_FUNC_DECL genType sqrt(genType const & x);
116 template <typename T, precision P, template <typename, precision> class vecType>
117 GLM_FUNC_DECL vecType<T, P> sqrt(vecType<T, P> const & v);
118
126 template <typename T, precision P, template <typename, precision> class vecType>
127 GLM_FUNC_DECL vecType<T, P> inversesqrt(vecType<T, P> const & v);
128
130 }//namespace glm
131
132 #include "func_exponential.inl"
glm::pow
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::log
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...
type_vec3.hpp
OpenGL Mathematics (glm.g-truc.net)
glm::exp2
GLM_FUNC_DECL vecType< T, P > exp2(vecType< T, P > const &v)
Returns 2 raised to the v power.
glm
Definition: _noise.hpp:40
type_vec2.hpp
OpenGL Mathematics (glm.g-truc.net)
type_vec1.hpp
OpenGL Mathematics (glm.g-truc.net)
glm::exp
GLM_FUNC_DECL vecType< T, P > exp(vecType< T, P > const &v)
Returns the natural exponentiation of x, i.e., e^x.
glm::inversesqrt
GLM_FUNC_DECL vecType< T, P > inversesqrt(vecType< T, P > const &v)
Returns the reciprocal of the positive square root of v.
glm::sqrt
GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &v)
Returns the positive square root of v.
glm::log2
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...
type_vec4.hpp
OpenGL Mathematics (glm.g-truc.net)