Container for number range definitions. More...
Inherits object.
Public Member Functions | |
bool | contains (self, float value) |
Checks if a value is within the range. More... | |
bool | intersects_with (self, cvb.NumberRange other) |
Checks if this value range intersects with another value range. More... | |
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.