Typedefs | Functions

Add support for integer for core functions. More...

Collaboration diagram for GLM_GTX_integer:

Typedefs

typedef signed int glm::sint
 

Functions

template<typename genType >
GLM_FUNC_DECL genType glm::factorial (genType const &x)
 
GLM_FUNC_DECL unsigned int glm::floor_log2 (unsigned int x)
 
template<typename genIUType >
GLM_FUNC_DECL genIUType glm::log2 (genIUType x)
 
GLM_FUNC_DECL int glm::mod (int x, int y)
 
GLM_FUNC_DECL uint glm::mod (uint x, uint y)
 
GLM_FUNC_DECL uint glm::nlz (uint x)
 
GLM_FUNC_DECL int glm::pow (int x, int y)
 
GLM_FUNC_DECL uint glm::pow (uint x, uint y)
 
GLM_FUNC_DECL int glm::sqrt (int x)
 
GLM_FUNC_DECL uint glm::sqrt (uint x)
 

Detailed Description

Add support for integer for core functions.

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

Typedef Documentation

◆ sint

typedef signed int glm::sint

32bit signed integer. From GLM_GTX_integer extension.

Definition at line 80 of file gtx/integer.hpp.

Function Documentation

◆ factorial()

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

Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension.

◆ floor_log2()

GLM_FUNC_DECL unsigned int glm::floor_log2 ( unsigned int  x)

Returns the floor log2 of x. From GLM_GTX_integer extension.

◆ log2()

template<typename genIUType >
GLM_FUNC_DECL genIUType glm::log2 ( genIUType  x)

Returns the log2 of x. Can be reliably using to compute mipmap count from the texture size. From GLM_GTX_integer extension.

◆ mod() [1/2]

GLM_FUNC_DECL int glm::mod ( int  x,
int  y 
)

Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension.

◆ mod() [2/2]

GLM_FUNC_DECL uint glm::mod ( uint  x,
uint  y 
)

Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension.

◆ nlz()

GLM_FUNC_DECL uint glm::nlz ( uint  x)

Returns the number of leading zeros. From GLM_GTX_integer extension.

◆ pow() [1/2]

GLM_FUNC_DECL int glm::pow ( int  x,
int  y 
)

Returns x raised to the y power. From GLM_GTX_integer extension.

◆ pow() [2/2]

GLM_FUNC_DECL uint glm::pow ( uint  x,
uint  y 
)

Returns x raised to the y power. From GLM_GTX_integer extension.

◆ sqrt() [1/2]

GLM_FUNC_DECL int glm::sqrt ( int  x)

Returns the positive square root of x. From GLM_GTX_integer extension.

◆ sqrt() [2/2]

GLM_FUNC_DECL uint glm::sqrt ( uint  x)

Returns the positive square root of x. From GLM_GTX_integer extension.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:59