global functions
glm::exp(...)
vecType< T, P > glm::exp(const vecType< T, P > &v=P)
Documentation from code comments
Returns the natural exponentiation of x, i.e., e^x.
Parameters:
v exp function is defined for input values of v defined in the range (inf-, inf+) in the limit of the type precision.
Type parameters:
genType Floating-point scalar or vector types.
See also: GLSL exp man page
See also: GLSL 4.20.8 specification, section 8.2 Exponential Functions
glm::exp2(...)
vecType< T, P > glm::exp2(const vecType< T, P > &v=P)
Documentation from code comments
Returns 2 raised to the v power.
Parameters:
v exp2 function is defined for input values of v defined in the range (inf-, inf+) in the limit of the type precision.
Type parameters:
genType Floating-point scalar or vector types.
See also: GLSL exp2 man page
See also: GLSL 4.20.8 specification, section 8.2 Exponential Functions
glm::inversesqrt(...)
vecType< T, P > glm::inversesqrt(const vecType< T, P > &v=P)
Documentation from code comments
Returns the reciprocal of the positive square root of v.
Parameters:
v inversesqrt function is defined for input values of v defined in the range [0, inf+) in the limit of the type precision.
Type parameters:
genType Floating-point scalar or vector types.
See also: GLSL inversesqrt man page
See also: GLSL 4.20.8 specification, section 8.2 Exponential Functions
glm::log(...)
vecType< T, P > glm::log(const vecType< T, P > &v=P)
Documentation from code comments
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.
Parameters:
v log function is defined for input values of v defined in the range (0, inf+) in the limit of the type precision.
Type parameters:
genType Floating-point scalar or vector types.
See also: GLSL log man page
See also: GLSL 4.20.8 specification, section 8.2 Exponential Functions
glm::log2(...)
vecType< T, P > glm::log2(const vecType< T, P > &v=P)
Documentation from code comments
Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y.
Parameters:
v log2 function is defined for input values of v defined in the range (0, inf+) in the limit of the type precision.
Type parameters:
genType Floating-point scalar or vector types.
See also: GLSL log2 man page
See also: GLSL 4.20.8 specification, section 8.2 Exponential Functions
glm::pow(...)
vecType< T, P > glm::pow(const vecType< T, P > &base=P, const vecType< T, P > &exponent=P)
Documentation from code comments
Returns 'base' raised to the power 'exponent'.
Parameters:
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 precision.
exponent Floating point value representing the 'exponent'.
Type parameters:
genType Floating-point scalar or vector types.
See also: GLSL pow man page
See also: GLSL 4.20.8 specification, section 8.2 Exponential Functions
Last updated Saturday, 17 August 2024 20:48:19 UTC - 99bfb4fd7929e233b87b05758efc36f91505592e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue