gz/math/Interval.hh
static constexpr Interval< T > Open(T _leftValue, T _rightValue)
Make an open interval (_leftValue, _rightValue)
Definition: gz/math/Interval.hh:74
static const Interval< T > & Unbounded
An unbounded interval (-∞, ∞)
Definition: gz/math/Interval.hh:47
static constexpr Interval< T > RightClosed(T _leftValue, T _rightValue)
Make a right-closed interval (_leftValue, _rightValue].
Definition: gz/math/Interval.hh:98
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
const T & LeftValue() const
Get the leftmost interval value.
Definition: gz/math/Interval.hh:119
T move(T... args)
The Interval class represents a range of real numbers. Intervals may be open (a, b),...
Definition: gz/math/Interval.hh:44
bool operator!=(const Interval< T > &_other) const
Inequality test operator.
Definition: gz/math/Interval.hh:257
const T & RightValue() const
Get the rightmost interval value.
Definition: gz/math/Interval.hh:127
bool Contains(const T &_value) const
Check if the interval contains _value
Definition: gz/math/Interval.hh:149
STL class.
bool Empty() const
Check if the interval is empty Some examples of empty intervals include (a, a), [a,...
Definition: gz/math/Interval.hh:137
static constexpr Interval< T > Closed(T _leftValue, T _rightValue)
Make a closed interval [_leftValue, _rightValue].
Definition: gz/math/Interval.hh:110
friend std::ostream & operator<<(std::ostream &_out, const Interval< T > &_interval)
Stream insertion operator.
Definition: gz/math/Interval.hh:266
STL namespace.
bool operator==(const Interval< T > &_other) const
Equality test operator.
Definition: gz/math/Interval.hh:249
static constexpr Interval< T > LeftClosed(T _leftValue, T _rightValue)
Make a left-closed interval [_leftValue, _rightValue)
Definition: gz/math/Interval.hh:86
bool IsLeftClosed() const
Check if the interval is left-closed.
Definition: gz/math/Interval.hh:123
bool Intersects(const Interval< T > &_other) const
Check if the interval intersects _other interval.
Definition: gz/math/Interval.hh:209
bool IsRightClosed() const
Check if the interval is right-closed.
Definition: gz/math/Interval.hh:131
bool Contains(const Interval< T > &_other) const
Check if the interval contains _other interval.
Definition: gz/math/Interval.hh:169
constexpr Interval(T _leftValue, bool _leftClosed, T _rightValue, bool _rightClosed)
Constructor.
Definition: gz/math/Interval.hh:59