| 0.9.8

- Main Page
- Modules
- Files

- File List

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::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'.
type_vec3.hpp
GLM Core
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...
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:11
type_vec2.hpp
GLM Core
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...
glm::sqrt
GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &v)
Returns the positive square root of v.
type_vec4.hpp
GLM Core
glm::exp
GLM_FUNC_DECL vecType< T, P > exp(vecType< T, P > const &v)
Returns the natural exponentiation of x, i.e., e^x.
type_vec1.hpp
GLM Core
glm::inversesqrt
GLM_FUNC_DECL vecType< T, P > inversesqrt(vecType< T, P > const &v)
Returns the reciprocal of the positive square root of v.