Definition at line 29 of file CBounds.hpp.
static __forceinline void Exponent::MathTools::CBounds::clampRange | ( | double & | value, | |
const double | min, | |||
const double | max | |||
) | [inline, static] |
Ensure the range of a long
value | The value to clamp, on return holds the clamped value | |
min | The min value it can have | |
max | The max value it can have |
long | The clamped value |
Definition at line 82 of file CBounds.hpp.
static __forceinline long Exponent::MathTools::CBounds::ensureRange | ( | const long | value, | |
const long | min, | |||
const long | max | |||
) | [inline, static] |
Ensure the range of a long
value | The value to clamp | |
min | The min value it can have | |
max | The max value it can have |
long | The clamped value |
Definition at line 62 of file CBounds.hpp.
static __forceinline double Exponent::MathTools::CBounds::ensureRange | ( | double | value, | |
const double | min, | |||
const double | max | |||
) | [inline, static] |
Ensure the range of a double
value | The value to clamp | |
min | The min value it can have | |
max | The max value it can have |
double | The clamped value |
Definition at line 42 of file CBounds.hpp.
Referenced by rangeCheck().
static __forceinline double Exponent::MathTools::CBounds::rangeCheck | ( | const double | value | ) | [inline, static] |
Range check a value (same as calling CBounds::ensureRange(value, 0.0, 1.0))
value | The value to clamp |
double | Value in range 0 - 1 |
Definition at line 99 of file CBounds.hpp.
References ensureRange().