|
| | IndexedRangeT (uint32_t index, T const &min, T const &max) |
| |
| uint32_t | getIndex () const |
| |
| | Range (T const &min, T const &max) noexcept |
| | Constructor.
|
| |
| T const & | clamp (T const &value) const noexcept |
| | Puts a value in the range.
|
| |
| bool | has (T const &value) const noexcept |
| |
| float | percent (T const &value) const noexcept |
| | Gives the percentage matching the given value.
|
| |
| float | invPercent (T const &value) const noexcept |
| | Gives the percentage matching the given value.
|
| |
| T | value (float const &percent) const noexcept |
| | Gives the value matching the given percentage.
|
| |
| T | invValue (float const &percent) const noexcept |
| | Gives the value matching the given percentage.
|
| |
| T const & | getMin () const noexcept |
| |
| T const & | getMax () const noexcept |
| |
template<typename T>
class castor::IndexedRangeT< T >
A range inside a sequence.