public final class R1Interval extends Object
| Constructor and Description |
|---|
R1Interval(double lo,
double hi) |
| Modifier and Type | Method and Description |
|---|---|
R1Interval |
addPoint(double p) |
boolean |
approxEquals(R1Interval y) |
boolean |
approxEquals(R1Interval y,
double maxError) |
boolean |
contains(double p) |
boolean |
contains(R1Interval y) |
static R1Interval |
empty() |
boolean |
equals(Object that) |
R1Interval |
expanded(double radius) |
static R1Interval |
fromPoint(double p) |
static R1Interval |
fromPointPair(double p1,
double p2) |
double |
getCenter() |
double |
getLength() |
int |
hashCode() |
double |
hi() |
boolean |
interiorContains(double p) |
boolean |
interiorContains(R1Interval y) |
boolean |
interiorIntersects(R1Interval y) |
R1Interval |
intersection(R1Interval y) |
boolean |
intersects(R1Interval y) |
boolean |
isEmpty() |
double |
lo() |
String |
toString() |
R1Interval |
union(R1Interval y) |
public static R1Interval empty()
public static R1Interval fromPoint(double p)
public static R1Interval fromPointPair(double p1, double p2)
public double lo()
public double hi()
public boolean isEmpty()
public double getCenter()
public double getLength()
public boolean contains(double p)
public boolean interiorContains(double p)
public boolean contains(R1Interval y)
public boolean interiorContains(R1Interval y)
public boolean intersects(R1Interval y)
public boolean interiorIntersects(R1Interval y)
public R1Interval addPoint(double p)
public R1Interval expanded(double radius)
public R1Interval union(R1Interval y)
public R1Interval intersection(R1Interval y)
public boolean equals(Object that)
public int hashCode()
public boolean approxEquals(R1Interval y)
public boolean approxEquals(R1Interval y, double maxError)
public String toString()
Copyright © 2017. All rights reserved.