Functions

Integer exponentiation of power functions. More...

Collaboration diagram for GLM_GTX_optimum_pow:

Functions

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

Detailed Description

Integer exponentiation of power functions.

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

Function Documentation

◆ pow2()

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

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

◆ pow3()

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

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

◆ pow4()

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

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

◆ powOfTwo() [1/4]

template<precision P>
GLM_FUNC_DECL detail::tvec2<bool, P> glm::gtx::powOfTwo ( detail::tvec2< int, P > const &  x)

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

◆ powOfTwo() [2/4]

template<precision P>
GLM_FUNC_DECL detail::tvec3<bool, P> glm::gtx::powOfTwo ( detail::tvec3< int, P > const &  x)

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

◆ powOfTwo() [3/4]

template<precision P>
GLM_FUNC_DECL detail::tvec4<bool, P> glm::gtx::powOfTwo ( detail::tvec4< int, P > const &  x)

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

◆ powOfTwo() [4/4]

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

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



rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26