Represents a range of floating point values. More...
Public Member Functions | |
| None | __init__ (self) |
| Creates an eVision.EFloatRange.__init__ object. | |
| None | __init__ (self, float min, float max) |
| Creates an eVision.EFloatRange.__init__ object. | |
| None | __init__ (self, eVision.EFloatRange range) |
| Creates an eVision.EFloatRange.__init__ object. | |
| None | SetBounds (self, float min, float max) |
| Sets the bounds of the range. | |
| None | SetFromBaseAndAbsoluteTolerance (self, float baseValue, float tolerance) |
| Sets the bounds of the range from a base value and an absolute tolerance from this base value. | |
| None | SetFromBaseAndRelativeTolerance (self, float baseValue, float tolerance) |
| Sets the bounds of the range from a base value and a relative tolerance from this base value. | |
| None | Update (self, float value) |
| Updates the range. | |
| None | Update (self, eVision.EFloatRange other) |
| Updates the range. | |
| bool | IsValid (self) |
| Returns true if the range is defined and valid. | |
| bool | IsInRange (self, float value, bool lowerBoundInclusive, bool upperBoundInclusive) |
| Checks if a value is inside the range. | |
| bool | IsInRange (self, float value, bool lowerBoundInclusive) |
| Checks if a value is inside the range. | |
| bool | IsInRange (self, float value) |
| Checks if a value is inside the range. | |
| float | LowerBound (self) |
| Lower bound of the range. | |
| float | UpperBound (self) |
| Upper bound of the range. | |
| float | Center (self) |
| Center of the range. | |
| float | Size (self) |
| Size of the range. | |
Represents a range of floating point values.
Remarks:
License(s): BasicTypes
| None eVision.EFloatRange.__init__ | ( | self | ) |
Creates an eVision.EFloatRange.__init__ object.
| None eVision.EFloatRange.__init__ | ( | self, | |
| float | min, | ||
| float | max ) |
Creates an eVision.EFloatRange.__init__ object.
| min | Lower bound of the range. |
| max | Upper bound of the range. |
| None eVision.EFloatRange.__init__ | ( | self, | |
| eVision.EFloatRange | range ) |
Creates an eVision.EFloatRange.__init__ object.
| range | Range to copy. |
| float eVision.EFloatRange.Center | ( | self | ) |
Center of the range.
| bool eVision.EFloatRange.IsInRange | ( | self, | |
| float | value ) |
Checks if a value is inside the range.
| value | Value to test. |
| bool eVision.EFloatRange.IsInRange | ( | self, | |
| float | value, | ||
| bool | lowerBoundInclusive ) |
Checks if a value is inside the range.
| value | Value to test. |
| lowerBoundInclusive | Indicates if the lower bound should be considered inside the range (true) or outside (false). |
| bool eVision.EFloatRange.IsInRange | ( | self, | |
| float | value, | ||
| bool | lowerBoundInclusive, | ||
| bool | upperBoundInclusive ) |
Checks if a value is inside the range.
| value | Value to test. |
| lowerBoundInclusive | Indicates if the lower bound should be considered inside the range (true) or outside (false). |
| upperBoundInclusive | Indicates if the upper bound should be considered inside the range (true) or outside (false). |
| bool eVision.EFloatRange.IsValid | ( | self | ) |
Returns true if the range is defined and valid.
| float eVision.EFloatRange.LowerBound | ( | self | ) |
Lower bound of the range.
| None eVision.EFloatRange.SetBounds | ( | self, | |
| float | min, | ||
| float | max ) |
Sets the bounds of the range.
| min | Lower bound of the range. |
| max | Upper bound of the range. |
| None eVision.EFloatRange.SetFromBaseAndAbsoluteTolerance | ( | self, | |
| float | baseValue, | ||
| float | tolerance ) |
Sets the bounds of the range from a base value and an absolute tolerance from this base value.
Remarks:
The range will be set with a lower bound of (base - tolerance) and an upper bound of (base + tolerance).
| baseValue | Base value. |
| tolerance | Absolute tolerance around the base value. Must be positive. |
| None eVision.EFloatRange.SetFromBaseAndRelativeTolerance | ( | self, | |
| float | baseValue, | ||
| float | tolerance ) |
Sets the bounds of the range from a base value and a relative tolerance from this base value.
Remarks:
The range will be set with a lower bound of (base - (base * tolerance)) and an upper bound of (base + (base * tolerance)).
| baseValue | Base value. |
| tolerance | Relative tolerance around the base value. Must be positive. |
| float eVision.EFloatRange.Size | ( | self | ) |
Size of the range.
| None eVision.EFloatRange.Update | ( | self, | |
| eVision.EFloatRange | other ) |
Updates the range.
If the range passed is not fully included in the range bounds, they are modified to include the given range.
| other | Range to be included in the range. |
| None eVision.EFloatRange.Update | ( | self, | |
| float | value ) |
Updates the range.
If the value passed is outside of the range bounds, they are modified so they include the value.
| value | Value to be included in the range. |
| float eVision.EFloatRange.UpperBound | ( | self | ) |
Upper bound of the range.