| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

exponential.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 #include "detail/type_vec1.hpp"
16 #include "detail/type_vec2.hpp"
17 #include "detail/type_vec3.hpp"
18 #include "detail/type_vec4.hpp"
19 #include <cmath>
20
21 namespace glm
22 {
25
33 template<length_t L, typename T, qualifier Q>
34 GLM_FUNC_DECL vec<L, T, Q> pow(vec<L, T, Q> const& base, vec<L, T, Q> const& exponent);
35
44 template<length_t L, typename T, qualifier Q>
45 GLM_FUNC_DECL vec<L, T, Q> exp(vec<L, T, Q> const& v);
46
57 template<length_t L, typename T, qualifier Q>
58 GLM_FUNC_DECL vec<L, T, Q> log(vec<L, T, Q> const& v);
59
68 template<length_t L, typename T, qualifier Q>
69 GLM_FUNC_DECL vec<L, T, Q> exp2(vec<L, T, Q> const& v);
70
80 template<length_t L, typename T, qualifier Q>
81 GLM_FUNC_DECL vec<L, T, Q> log2(vec<L, T, Q> const& v);
82
91 template<length_t L, typename T, qualifier Q>
92 GLM_FUNC_DECL vec<L, T, Q> sqrt(vec<L, T, Q> const& v);
93
102 template<length_t L, typename T, qualifier Q>
103 GLM_FUNC_DECL vec<L, T, Q> inversesqrt(vec<L, T, Q> const& v);
104
106 }//namespace glm
107
108 #include "detail/func_exponential.inl"
type_vec4.hpp
Core features
type_vec2.hpp
Core features
glm
Definition: common.hpp:20
type_vec3.hpp
Core features
type_vec1.hpp
Core features
glm::log2
GLM_FUNC_DECL vec< L, T, Q > log2(vec< L, T, Q > const &v)
Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y...
glm::exp
GLM_FUNC_DECL vec< L, T, Q > exp(vec< L, T, Q > const &v)
Returns the natural exponentiation of x, i.e., e^x.
glm::pow
GLM_FUNC_DECL vec< L, T, Q > pow(vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)
Returns 'base' raised to the power 'exponent'.
glm::inversesqrt
GLM_FUNC_DECL vec< L, T, Q > inversesqrt(vec< L, T, Q > const &v)
Returns the reciprocal of the positive square root of v.
glm::sqrt
GLM_FUNC_DECL vec< L, T, Q > sqrt(vec< L, T, Q > const &v)
Returns the positive square root of v.
glm::exp2
GLM_FUNC_DECL vec< L, T, Q > exp2(vec< L, T, Q > const &v)
Returns 2 raised to the v power.
glm::log
GLM_FUNC_DECL vec< L, T, Q > log(vec< L, T, Q > const &v)
Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y...