Flow Visualisation

Integer exponentiation of power functions. More...

Collaboration diagram for GLM_GTX_optimum_pow:

Functions

template<typename genType >
genType glm::gtx::pow2 (const genType &x)
 
template<typename genType >
genType glm::gtx::pow3 (const genType &x)
 
template<typename genType >
genType glm::gtx::pow4 (const genType &x)
 
bool glm::gtx::powOfTwo (int num)
 
detail::tvec2< bool > glm::gtx::powOfTwo (const detail::tvec2< int > &x)
 
detail::tvec3< bool > glm::gtx::powOfTwo (const detail::tvec3< int > &x)
 
detail::tvec4< bool > glm::gtx::powOfTwo (const detail::tvec4< int > &x)
 

Detailed Description

Integer exponentiation of power functions.

<glm/gtx/optimum_pow.hpp> need to be included to use these functionalities.

Function Documentation

template<typename genType >
genType glm::gtx::pow2 ( const genType &  x)

Returns x raised to the power of 2. From GLM_GTX_optimum_pow extension.

template<typename genType >
genType glm::gtx::pow3 ( const genType &  x)

Returns x raised to the power of 3. From GLM_GTX_optimum_pow extension.

template<typename genType >
genType glm::gtx::pow4 ( const genType &  x)

Returns x raised to the power of 4. From GLM_GTX_optimum_pow extension.

bool glm::gtx::powOfTwo ( int  num)

Checks if the parameter is a power of 2 number. From GLM_GTX_optimum_pow extension.

detail::tvec2<bool> glm::gtx::powOfTwo ( const detail::tvec2< int > &  x)

Checks to determine if the parameter component are power of 2 numbers. From GLM_GTX_optimum_pow extension.

detail::tvec3<bool> glm::gtx::powOfTwo ( const detail::tvec3< int > &  x)

Checks to determine if the parameter component are power of 2 numbers. From GLM_GTX_optimum_pow extension.

detail::tvec4<bool> glm::gtx::powOfTwo ( const detail::tvec4< int > &  x)

Checks to determine if the parameter component are power of 2 numbers. From GLM_GTX_optimum_pow extension.