|
| template<typename U> |
| Range< U > | cast () const |
| | Cast this range to another one.
|
| T | clamp (T iValue) const |
| | Clamp the value to this range.
|
| bool | contains (T iValue) const |
| | This method assumes that fFrom and fTo are part of the range or another way to put it:
|
| bool | isSingleValue () const |
| template<typename U, typename TLerp = DPLerpXY<T, U>> |
| Range< U > | mapRange (Range< U > const &iRange) const |
| | Map this range to the other range.
|
| template<typename U, typename TLerp = DPLerpXY<T, U>> |
| Range< U > | mapSubRange (Range< T > const &iSubRange, Range< U > const &iRange, bool iClampToRange=true) const |
| | Map a sub range of this range to the other range.
|
| template<typename U, typename TLerp = DPLerpXY<T, U>> |
| U | mapValue (T iValue, Range< U > const &iRange, bool iClampToRange=true) const |
| | Map the value from this range into the provide range.
|
| bool | operator!= (const Range &rhs) const |
| bool | operator== (const Range &rhs) const |
| | Range ()=default |
| | Range (T iFrom, T iTo) |
| | Range (T iValue) noexcept |
template<typename T>
struct pongasoft::Utils::Range< T >
Defines a range of values.