Functions

Find the closest number of a number multiple of other number. More...

Collaboration diagram for GLM_GTX_multiple:

Functions

template<typename genType >
GLM_FUNC_DECL genType glm::higherMultiple (genType const &Source, genType const &Multiple)
 
template<typename genType >
GLM_FUNC_DECL genType glm::lowerMultiple (genType const &Source, genType const &Multiple)
 

Detailed Description

Find the closest number of a number multiple of other number.

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

Function Documentation

◆ higherMultiple()

template<typename genType >
GLM_FUNC_DECL genType glm::higherMultiple ( genType const &  Source,
genType const &  Multiple 
)

Higher multiple number of Source.

Template Parameters
genTypeFloating-point or integer scalar or vector types.
Parameters
Source
MultipleMust be a null or positive value
See also
GLM_GTX_multiple

◆ lowerMultiple()

template<typename genType >
GLM_FUNC_DECL genType glm::lowerMultiple ( genType const &  Source,
genType const &  Multiple 
)

Lower multiple number of Source.

Template Parameters
genTypeFloating-point or integer scalar or vector types.
Parameters
Source
MultipleMust be a null or positive value
See also
GLM_GTX_multiple


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