0.9.9 API documentation
Loading...
Searching...
No Matches
GLM_GTX_optimum_pow

Include <glm/gtx/optimum_pow.hpp> to use the features of this extension. More...

Functions

template<typename genType >
GLM_FUNC_DECL genType pow2 (genType const &x)
 Returns x raised to the power of 2.
 
template<typename genType >
GLM_FUNC_DECL genType pow3 (genType const &x)
 Returns x raised to the power of 3.
 
template<typename genType >
GLM_FUNC_DECL genType pow4 (genType const &x)
 Returns x raised to the power of 4.
 

Detailed Description

Include <glm/gtx/optimum_pow.hpp> to use the features of this extension.

Integer exponentiation of power functions.

Function Documentation

◆ pow2()

template<typename genType >
GLM_FUNC_DECL genType pow2 ( genType const & x)

Returns x raised to the power of 2.

See also
GLM_GTX_optimum_pow

◆ pow3()

template<typename genType >
GLM_FUNC_DECL genType pow3 ( genType const & x)

Returns x raised to the power of 3.

See also
GLM_GTX_optimum_pow

◆ pow4()

template<typename genType >
GLM_FUNC_DECL genType pow4 ( genType const & x)

Returns x raised to the power of 4.

See also
GLM_GTX_optimum_pow