Modifier and Type | Field and Description |
---|---|
private double |
lower |
private double |
upper |
Constructor and Description |
---|
Range() |
Range(double lower,
double upper) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x) |
static Range |
cut(Range a,
Range b)
provides the intersection of 2 overlapping ranges
|
double |
getLower() |
double |
getUpper() |
Range |
reduceAround(double x,
Range other)
under the premise, that x is within this range,
and not within the other range, it shrinks this range in a way
to exclude the other range, but still contain x.
|
String |
toString() |
public boolean contains(double x)
public Range reduceAround(double x, Range other)
public double getLower()
public double getUpper()