Functions | |
template<typename genType > | |
GLM_FUNC_DECL genType | glm::exp (genType const &x) |
template<typename genType > | |
GLM_FUNC_DECL genType | glm::exp2 (genType const &x) |
template<typename genType > | |
GLM_FUNC_DECL genType | glm::inversesqrt (genType const &x) |
template<typename genType > | |
GLM_FUNC_DECL genType | glm::log (genType const &x) |
template<typename genType > | |
GLM_FUNC_DECL genType | glm::log2 (genType x) |
template<typename genType > | |
GLM_FUNC_DECL genType | glm::pow (genType const &base, genType const &exponent) |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< T, P > | glm::sqrt (vecType< T, P > const &x) |
These all operate component-wise. The description is per component.
GLM_FUNC_DECL genType glm::exp | ( | genType const & | x | ) |
Returns the natural exponentiation of x, i.e., e^x.
x | exp function is defined for input values of x defined in the range (inf-, inf+) in the limit of the type precision. |
genType | Floating-point scalar or vector types. |
GLM_FUNC_DECL genType glm::exp2 | ( | genType const & | x | ) |
Returns 2 raised to the x power.
x | exp2 function is defined for input values of x defined in the range (inf-, inf+) in the limit of the type precision. |
genType | Floating-point scalar or vector types. |
GLM_FUNC_DECL genType glm::inversesqrt | ( | genType const & | x | ) |
Returns the reciprocal of the positive square root of x.
x | inversesqrt function is defined for input values of x defined in the range [0, inf+) in the limit of the type precision. |
genType | Floating-point scalar or vector types. |
GLM_FUNC_DECL genType glm::log | ( | genType const & | x | ) |
Returns the natural logarithm of x, i.e., returns the value y which satisfies the equation x = e^y. Results are undefined if x <= 0.
x | log function is defined for input values of x defined in the range (0, inf+) in the limit of the type precision. |
genType | Floating-point scalar or vector types. |
GLM_FUNC_DECL genType glm::log2 | ( | genType | x | ) |
Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y.
x | log2 function is defined for input values of x defined in the range (0, inf+) in the limit of the type precision. |
genType | Floating-point scalar or vector types. |
GLM_FUNC_DECL genType glm::pow | ( | genType const & | base, |
genType const & | exponent | ||
) |
Returns 'base' raised to the power 'exponent'.
base | Floating point value. pow function is defined for input values of x defined in the range (inf-, inf+) in the limit of the type precision. |
exponent | Floating point value representing the 'exponent'. |
genType | Floating-point scalar or vector types. |
GLM_FUNC_DECL vecType<T, P> glm::sqrt | ( | vecType< T, P > const & | x | ) |
Returns the positive square root of x.
x | sqrt function is defined for input values of x defined in the range [0, inf+) in the limit of the type precision. |
genType | Floating-point scalar or vector types. |