Container for number range definitions. More...
Public Member Functions | |
bool | contains (self, float value) |
Checks if a value is within the range. | |
bool | intersects_with (self, cvb.NumberRange other) |
Checks if this value range intersects with another value range. | |
Properties | |
max = property | |
float: Gets or sets the maximum value. | |
min = property | |
float: Gets or sets the minimum value. | |
Container for number range definitions.
Creates a number range.
min : float Minimum value.
max : float Maximum value.
bool contains | ( | self, | |
float | value ) |
Checks if a value is within the range.
value : float Value to be checked.
bool True if the value is within the range (border included), False otherwise.
bool intersects_with | ( | self, | |
cvb.NumberRange | other ) |
Checks if this value range intersects with another value range.
other : cvb.NumberRange Range for intersection test.
bool True if this range and the other range have at least one value in common, False otherwise.
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.