core_func_exponential Module Reference
Provides GLSL exponential functions
These all operate componentwise. The description is per component.
Include < glm/exponential.hpp > to use these core features.
Public Member Functions

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'.
base
Floating point value. pow function is defined for input values of 'base' defined in the range (inf, inf+) in the limit of the type qualifier.
exponentFloating point value representing the 'exponent'.
 See Also
 See Also
GLSL 4.20.8 specification, section 8.2 Exponential Functions

GLM_FUNC_DECL vec< L, T, Q >exp (vec< L, T, Q > const &v)
Returns the natural exponentiation of x, i.e., e^x.
v
exp function is defined for input values of v defined in the range (inf, inf+) in the limit of the type qualifier.
LAn integer between 1 and 4 included that qualify the dimension of the vector.
TFloatingpoint scalar types.
 See Also
 See Also
GLSL 4.20.8 specification, section 8.2 Exponential Functions

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. Results are undefined if v <= 0.
v
log function is defined for input values of v defined in the range (0, inf+) in the limit of the type qualifier.
LAn integer between 1 and 4 included that qualify the dimension of the vector.
TFloatingpoint scalar types.
 See Also
 See Also
GLSL 4.20.8 specification, section 8.2 Exponential Functions

GLM_FUNC_DECL vec< L, T, Q >exp2 (vec< L, T, Q > const &v)
Returns 2 raised to the v power.
v
exp2 function is defined for input values of v defined in the range (inf, inf+) in the limit of the type qualifier.
LAn integer between 1 and 4 included that qualify the dimension of the vector.
TFloatingpoint scalar types.
 See Also
 See Also
GLSL 4.20.8 specification, section 8.2 Exponential Functions

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.
v
log2 function is defined for input values of v defined in the range (0, inf+) in the limit of the type qualifier.
LAn integer between 1 and 4 included that qualify the dimension of the vector.
TFloatingpoint scalar types.
 See Also
 See Also
GLSL 4.20.8 specification, section 8.2 Exponential Functions

GLM_FUNC_DECL vec< L, T, Q >sqrt (vec< L, T, Q > const &v)
Returns the positive square root of v.
v
sqrt function is defined for input values of v defined in the range [0, inf+) in the limit of the type qualifier.
LAn integer between 1 and 4 included that qualify the dimension of the vector.
TFloatingpoint scalar types.
 See Also
 See Also
GLSL 4.20.8 specification, section 8.2 Exponential Functions

GLM_FUNC_DECL vec< L, T, Q >inversesqrt (vec< L, T, Q > const &v)
Returns the reciprocal of the positive square root of v.
v
inversesqrt function is defined for input values of v defined in the range [0, inf+) in the limit of the type qualifier.
LAn integer between 1 and 4 included that qualify the dimension of the vector.
TFloatingpoint scalar types.
 See Also
 See Also
GLSL 4.20.8 specification, section 8.2 Exponential Functions