Represents a range of floating point values. More...


Public Member Functions | |
| EFloatRange () | |
| Creates an EFloatRange.EFloatRange object. | |
| EFloatRange (float min, float max) | |
| Creates an EFloatRange.EFloatRange object. | |
| EFloatRange (eVision.EFloatRange range) | |
| Creates an EFloatRange.EFloatRange object. | |
| void | SetBounds (float min, float max) |
| Sets the bounds of the range. | |
| void | SetFromBaseAndAbsoluteTolerance (float baseValue, float tolerance) |
| Sets the bounds of the range from a base value and an absolute tolerance from this base value. | |
| void | SetFromBaseAndRelativeTolerance (float baseValue, float tolerance) |
| Sets the bounds of the range from a base value and a relative tolerance from this base value. | |
| void | Update (float value) |
| Updates the range. If the value passed is outside of the range bounds, they are modified so they include the value. | |
| void | Update (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. | |
| bool | IsValid () |
| Returns true if the range is defined and valid. | |
| bool | IsInRange (float value, bool lowerBoundInclusive, bool upperBoundInclusive) |
| Checks if a value is inside the range. | |
| bool | IsInRange (float value, bool lowerBoundInclusive) |
| Checks if a value is inside the range. | |
| bool | IsInRange (float value) |
| Checks if a value is inside the range. | |
Properties | |
| float | LowerBound [get] |
| Lower bound of the range. | |
| float | UpperBound [get] |
| Upper bound of the range. | |
| float | Center [get] |
| Center of the range. | |
| float | Size [get] |
| Size of the range. | |
Represents a range of floating point values.
License(s): BasicTypes
| eVision.EFloatRange.EFloatRange | ( | ) |
Creates an EFloatRange.EFloatRange object.
| eVision.EFloatRange.EFloatRange | ( | float | min, |
| float | max ) |
Creates an EFloatRange.EFloatRange object.
| min | Lower bound of the range. |
| max | Upper bound of the range. |
| eVision.EFloatRange.EFloatRange | ( | eVision.EFloatRange | range | ) |
Creates an EFloatRange.EFloatRange object.
| range | Range to copy. |
| bool eVision.EFloatRange.IsInRange | ( | float | value | ) |
Checks if a value is inside the range.
| value | Value to test. |
| bool eVision.EFloatRange.IsInRange | ( | 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 | ( | 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 | ( | ) |
Returns true if the range is defined and valid.
| void eVision.EFloatRange.SetBounds | ( | float | min, |
| float | max ) |
Sets the bounds of the range.
| min | Lower bound of the range. |
| max | Upper bound of the range. |
| void eVision.EFloatRange.SetFromBaseAndAbsoluteTolerance | ( | float | baseValue, |
| float | tolerance ) |
Sets the bounds of the range from a base value and an absolute tolerance from this base value.
| baseValue | Base value. |
| tolerance | Absolute tolerance around the base value. Must be positive. |
The range will be set with a lower bound of (base - tolerance) and an upper bound of (base + tolerance).
| void eVision.EFloatRange.SetFromBaseAndRelativeTolerance | ( | float | baseValue, |
| float | tolerance ) |
Sets the bounds of the range from a base value and a relative tolerance from this base value.
| baseValue | Base value. |
| tolerance | Relative tolerance around the base value. Must be positive. |
The range will be set with a lower bound of (base - (base * tolerance)) and an upper bound of (base + (base * tolerance)).
| void eVision.EFloatRange.Update | ( | 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. |
| void eVision.EFloatRange.Update | ( | 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. |
|
get |
Center of the range.
|
get |
Lower bound of the range.
|
get |
Size of the range.
|
get |
Upper bound of the range.