public class Range
extends java.lang.Object
Constructor and Description |
---|
Range(double low,
double high)
Creates a numerical range.
|
Modifier and Type | Method and Description |
---|---|
double |
getHigh()
Gets the highest value of the range.
|
double |
getLow()
Gets the lowest value of the range.
|
boolean |
inRangeExclusive(double value)
Determines whether a value is in the range (exclusive).
|
boolean |
inRangeInclusive(double value)
Determines whether a value is in the range (inclusive).
|
public Range(double low, double high)
low
- The minimum value in the range.high
- The maximum value in the range.public double getLow()
public double getHigh()
public boolean inRangeInclusive(double value)
value
- The value to check for.public boolean inRangeExclusive(double value)
value
- The value to check for.