Min/Max utility class.
More...
#include <Imt.Base.Core.Util/MinMax.h>
|
template<typename T > |
static const T | max (const T argOne, const T argTwo) |
| Return the greater of two arguments. More...
|
|
template<typename T > |
static const T | min (const T argOne, const T argTwo) |
| Return the smaller of two arguments. More...
|
|
template<typename T > |
static const T | truncateToRange (const T value, const T lowLimit, const T highLimit) |
| Truncate the value to range. More...
|
|
Min/Max utility class.
Pure static class.
◆ max()
template<typename T >
static const T imt::base::core::util::MinMax::max |
( |
const T |
argOne, |
|
|
const T |
argTwo |
|
) |
| |
|
inlinestatic |
Return the greater of two arguments.
- Parameters
-
argOne | Argument one |
argTwo | Argument two |
- Returns
- Return the greater of two arguments
◆ min()
template<typename T >
static const T imt::base::core::util::MinMax::min |
( |
const T |
argOne, |
|
|
const T |
argTwo |
|
) |
| |
|
inlinestatic |
Return the smaller of two arguments.
- Parameters
-
argOne | Argument one |
argTwo | Argument two |
- Returns
- Return the smaller of two arguments
◆ truncateToRange()
template<typename T >
static const T imt::base::core::util::MinMax::truncateToRange |
( |
const T |
value, |
|
|
const T |
lowLimit, |
|
|
const T |
highLimit |
|
) |
| |
|
inlinestatic |
Truncate the value to range.
- Parameters
-
value | Value to be truncated |
lowLimit | Lower limit of range |
highLimit | Higher limit of range |
- Returns
- Return the truncated value to range
The documentation for this class was generated from the following file:
- D:/_Work/10/s/Imt.Base/Imt.Base.Core.Util/MinMax.h