0.9.9 API documenation

- 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
31 template<length_t L, typename T, qualifier P>
32 GLM_FUNC_DECL vec<L, T, P> pow(vec<L, T, P> const & base, vec<L, T, P> const& exponent);
33
42 template<length_t L, typename T, qualifier P>
43 GLM_FUNC_DECL vec<L, T, P> exp(vec<L, T, P> const& v);
44
55 template<length_t L, typename T, qualifier P>
56 GLM_FUNC_DECL vec<L, T, P> log(vec<L, T, P> const& v);
57
66 template<length_t L, typename T, qualifier P>
67 GLM_FUNC_DECL vec<L, T, P> exp2(vec<L, T, P> const& v);
68
78 template<length_t L, typename T, qualifier P>
79 GLM_FUNC_DECL vec<L, T, P> log2(vec<L, T, P> const& v);
80
89 template<length_t L, typename T, qualifier P>
90 GLM_FUNC_DECL vec<L, T, P> sqrt(vec<L, T, P> const & v);
91
100 template<length_t L, typename T, qualifier P>
101 GLM_FUNC_DECL vec<L, T, P> inversesqrt(vec<L, T, P> const & v);
102
104 }//namespace glm
105
106 #include "func_exponential.inl"
glm::exp
GLM_FUNC_DECL vec< L, T, P > exp(vec< L, T, P > const &v)
Returns the natural exponentiation of x, i.e., e^x.
glm::log2
GLM_FUNC_DECL vec< L, T, P > log2(vec< L, 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_vec2.hpp
GLM Core
glm::exp2
GLM_FUNC_DECL vec< L, T, P > exp2(vec< L, T, P > const &v)
Returns 2 raised to the v power.
glm
Definition: _noise.hpp:11
glm::inversesqrt
GLM_FUNC_DECL vec< L, T, P > inversesqrt(vec< L, T, P > const &v)
Returns the reciprocal of the positive square root of v.
type_vec1.hpp
GLM Core
type_vec4.hpp
GLM Core
glm::log
GLM_FUNC_DECL vec< L, T, P > log(vec< L, 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
GLM Core
glm::sqrt
GLM_FUNC_DECL vec< L, T, P > sqrt(vec< L, T, P > const &v)
Returns the positive square root of v.
glm::pow
GLM_FUNC_DECL vec< L, T, P > pow(vec< L, T, P > const &base, vec< L, T, P > const &exponent)
Returns 'base' raised to the power 'exponent'.