47 T
Min() const noexcept
69 T
Max() const noexcept
94 return !(value < min_ || value < max_);
105 return !(min_ > other.max_ || max_ < other.min_);
116 return min_ == valueRange.min_ && max_ == valueRange.max_;
127 return !(*
this == valueRange);
135 "CVB: Unsupported data type - target must be floating point, source must be numeric!");
136 return ValueRange<C>(
static_cast<C
>(min_),
static_cast<C
>(max_));
Container for range definitions.
Definition value_range.hpp:17
bool operator==(const ValueRange< T > &valueRange) const noexcept
Compares to an other value range.
Definition value_range.hpp:114
bool operator!=(const ValueRange< T > &valueRange) const noexcept
Compares to an other value range.
Definition value_range.hpp:125
T Min() const noexcept
Gets the minimum value.
Definition value_range.hpp:47
bool IntersectsWith(ValueRange< T > other) const noexcept
Checks if this value range intersects with another value range.
Definition value_range.hpp:103
ValueRange() noexcept=default
Creates a default value range e.g. from 0 to 0.
void SetMin(T min)
Sets the minimum value.
Definition value_range.hpp:57
T Max() const noexcept
Gets the maximum value.
Definition value_range.hpp:69
void SetMax(T max)
Sets the maximum value.
Definition value_range.hpp:79
bool Contains(T value) const noexcept
Checks if a value is within the range.
Definition value_range.hpp:92
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
Point2D< int > Round(const Point2D< T > &rhs) noexcept
Round to an integer point.
Definition point_2d.hpp:371