Base Framework
|
2D range. More...
#include <base/Range2D.h>
Inherits Object.
Public Member Functions | |
Range2D () noexcept | |
Range2D (const Range2D ©) noexcept | |
Range2D (double _minimum, double _maximum) noexcept | |
Range2D & | operator= (const Range2D &assign) noexcept |
bool | isAbove (double value) const noexcept |
bool | isBelow (double value) const noexcept |
bool | isOutside (double value) const noexcept |
bool | isWithin (double value) const noexcept |
double | getMinimum () const noexcept |
double | getMaximum () const noexcept |
void | setMinimum (double minimum) noexcept |
void | setMaximum (double maximum) noexcept |
Protected Attributes | |
double | minimum = 0 |
double | maximum = 0 |
2D range.
A 2D range object is a span from a minimum to a maximum.
|
inlinenoexcept |
Initializes a Range2D object with the minimum and maximum values set to zero.
|
inlinenoexcept |
Initializes a Range2D object. The range is copied from the specified range.
range | The desired range. |
|
inlinenoexcept |
Initializes a Range2D object with the specified minimum and maximum values.
minimum | The desired minimum value. |
maximum | The desired maximum value. |
|
inlinenoexcept |
Returns the maximum value.
|
inlinenoexcept |
Returns the minimum value.
|
inlinenoexcept |
Returns true if the value is above the range specified by minimum and maximum.
value | The value to be checked. |
|
inlinenoexcept |
Returns true if the value is below the range specified by minimum and maximum.
value | The value to be checked. |
|
inlinenoexcept |
Returns true if the value is outside the range specified by minimum and maximum.
value | The value to be checked. |
|
inlinenoexcept |
Returns true if the value is within the range specified by minimum and maximum.
value | The value to be checked. |
Sets the range.
range | The desired range. |
|
inlinenoexcept |
Sets the maximum value.
maximum | The desired maximum value. |
|
inlinenoexcept |
Sets the minimum value.
minimum | The desired minimum value. |
|
protected |
The maximum value.
|
protected |
The minimum value.