public abstract class CoordInterval extends Object
| Constructor and Description |
|---|
CoordInterval() |
| Modifier and Type | Method and Description |
|---|---|
static CoordInterval |
create(double start,
double end)
Create an interval.
|
abstract double |
end()
The ending value of the coordinate interval
|
boolean |
fuzzyEquals(CoordInterval other,
double tol)
Compare two intervals to within the given tolerence.
|
double |
midpoint()
The midpoint between start and end.
|
static CoordInterval |
parse(String source)
The inverse of toString(), or null if cant parse
|
abstract double |
start()
The starting value of the coordinate interval
|
String |
toString() |
String |
toString(int ndecimals)
Show the interval with given decimal precision.
|
public abstract double start()
public abstract double end()
public static CoordInterval create(double start, double end)
public double midpoint()
public boolean fuzzyEquals(CoordInterval other, double tol)
public String toString(int ndecimals)
@Nullable public static CoordInterval parse(String source)