The MinMax class inherits from Tuple, specilizing the template parameters to float for element type.
Definition minmax.h:31
bool isValid() const
Check if the MinMax is valid, which means that the minimum value should be less than or equal to the ...
float center() const
Gets the mean value of the minimum and maximum values.
void setMin(float min)
Sets the min value.
MinMax(const MinMax &other)
float length() const
Gets the extent of this MinMax.
MinMax & operator+=(const MinMax &other)
Expands the current MinMax to emcompass the minimum and maximum value of the other MinMax.
const float & operator[](int index) const
Provides read-only access to the element at a specific index(position) within the MinMax object.
float min() const
Gets the min value.
void set(float min, float max)
Sets the min and max value of this MinMax object.
float max() const
Gets the max value.
bool inRange(float value) const
Check if a value is in the range of the MinMax.
float & operator[](int index)
Provides read-write access to the element at a specific index(position) within the MinMax object.
void setMax(float max)
Sets the max value.
MinMax(float min, float max)
Constructs a MinMax object which holds two value (min, max), and initializes the min value as the low...
MinMax & operator+=(float value)
Expands the current MinMax to emcompass the given value.
The Tuple is a templated class inheriting from the most basic class Variant.
Definition tuple.h:27