gtc_round Module Reference
Include < glm/gtc/round.hpp > to use the features of this extension.
Rounding value to specific boundings
Public Member Functions
-
GLM_FUNC_DECL genIUTypeceilPowerOfTwo (genIUType v)
Return the power of two number which value is just higher the input value, round up to a power of two.
- See Also
-
GLM_FUNC_DECL vec< L, T, Q >ceilPowerOfTwo (vec< L, T, Q > const &v)
Return the power of two number which value is just higher the input value, round up to a power of two.
L
Integer between 1 and 4 included that qualify the dimension of the vector
TFloating-point or integer scalar types
QValue from qualifier enum
- See Also
-
GLM_FUNC_DECL genIUTypefloorPowerOfTwo (genIUType v)
Return the power of two number which value is just lower the input value, round down to a power of two.
- See Also
-
GLM_FUNC_DECL vec< L, T, Q >floorPowerOfTwo (vec< L, T, Q > const &v)
Return the power of two number which value is just lower the input value, round down to a power of two.
L
Integer between 1 and 4 included that qualify the dimension of the vector
TFloating-point or integer scalar types
QValue from qualifier enum
- See Also
-
GLM_FUNC_DECL genIUTyperoundPowerOfTwo (genIUType v)
Return the power of two number which value is the closet to the input value.
- See Also
-
GLM_FUNC_DECL vec< L, T, Q >roundPowerOfTwo (vec< L, T, Q > const &v)
Return the power of two number which value is the closet to the input value.
L
Integer between 1 and 4 included that qualify the dimension of the vector
TFloating-point or integer scalar types
QValue from qualifier enum
- See Also
-
GLM_FUNC_DECL genTypeceilMultiple (genType v, genType Multiple)
Higher multiple number of Source.
genType
Floating-point or integer scalar or vector types.
vSource value to which is applied the function
MultipleMust be a null or positive value
- See Also
-
GLM_FUNC_DECL vec< L, T, Q >ceilMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Higher multiple number of Source.
L
Integer between 1 and 4 included that qualify the dimension of the vector
TFloating-point or integer scalar types
QValue from qualifier enum
vSource values to which is applied the function
MultipleMust be a null or positive value
- See Also
-
GLM_FUNC_DECL genTypefloorMultiple (genType v, genType Multiple)
Lower multiple number of Source.
genType
Floating-point or integer scalar or vector types.
vSource value to which is applied the function
MultipleMust be a null or positive value
- See Also
-
GLM_FUNC_DECL vec< L, T, Q >floorMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Lower multiple number of Source.
L
Integer between 1 and 4 included that qualify the dimension of the vector
TFloating-point or integer scalar types
QValue from qualifier enum
vSource values to which is applied the function
MultipleMust be a null or positive value
- See Also
-
GLM_FUNC_DECL genTyperoundMultiple (genType v, genType Multiple)
Lower multiple number of Source.
genType
Floating-point or integer scalar or vector types.
vSource value to which is applied the function
MultipleMust be a null or positive value
- See Also
-
GLM_FUNC_DECL vec< L, T, Q >roundMultiple (vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Lower multiple number of Source.
L
Integer between 1 and 4 included that qualify the dimension of the vector
TFloating-point or integer scalar types
QValue from qualifier enum
vSource values to which is applied the function
MultipleMust be a null or positive value
- See Also