Functions | |
template<class NumericalType > | |
NumericalType | BoundedValue (NumericalType value, NumericalType lowerBound, NumericalType upperBound) |
Bounded value. More... | |
Int32 | Round (Float64 x) |
Rounds. More... | |
template<class NumericalType > | |
bool | InRange (NumericalType value, NumericalType min, NumericalType max, bool strict=false) |
In range More... | |
template< class NumericalType > NumericalType BoundedValue | ( | NumericalType | value, |
NumericalType | lowerBound, | ||
NumericalType | upperBound | ||
) |
Bounded value.
value | The value. |
lowerBound | The lower bound. |
upperBound | The upper bound. |
template< class NumericalType > bool InRange | ( | NumericalType | value, |
NumericalType | min, | ||
NumericalType | max, | ||
bool | strict = false |
||
) |
In range
value | The value. |
min | The minimum. |
max | The maximum. |
strict | (optional) Value strictly inside the bounds. |
Int32 Round | ( | Float64 | x | ) |
Rounds.
x | The value to round. |