|
| | Interval ()=default |
| | Initialises a new instance of the Interval class.
|
| |
| | Interval (TYPE lower_value, TYPE upper_value) |
| | Initialises a new instance of the Interval class.
|
| |
| TYPE | lower () const noexcept |
| | Gets the interval lower bound.
|
| |
| TYPE | upper () const noexcept |
| | Gets the interval upper bound.
|
| |
| TYPE | length () const noexcept |
| | Gets the interval length.
|
| |
| bool | contains (TYPE value) const noexcept |
| | Determines whether a value is in the Interval.
|
| |
| bool | contains (Interval< TYPE > &other) const noexcept |
| | Determines whether an Interval is inside this instance interval.
|
| |
| TYPE | clamp (TYPE value) const noexcept |
| | Clamp a given value to the interval boundaries.
|
| |
| std::string | to_string () const noexcept |
| | Convert this instance to a string representation.
|
| |
| auto | operator<=> (const Interval< TYPE > &rhs) const =default |
| | Compare two Interval instances.
|
| |
template<Numerical TYPE>
class hgps::core::Interval< TYPE >
Numeric interval representation data type.
- Template Parameters
-