public class Interval extends Object
IntervalsSet| Constructor and Description |
|---|
Interval(double lower,
double upper)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Region.Location |
checkPoint(double point,
double tolerance)
Check a point with respect to the interval.
|
double |
getBarycenter()
Get the barycenter of the interval.
|
double |
getInf()
Get the lower bound of the interval.
|
double |
getLength()
Deprecated.
as of 3.1, replaced by
getSize() |
double |
getLower()
Deprecated.
as of 3.1, replaced by
getInf() |
double |
getMidPoint()
Deprecated.
as of 3.1, replaced by
getBarycenter() |
double |
getSize()
Get the size of the interval.
|
double |
getSup()
Get the upper bound of the interval.
|
double |
getUpper()
Deprecated.
as of 3.1, replaced by
getSup() |
public Interval(double lower, double upper)
lower - lower bound of the intervalupper - upper bound of the intervalpublic double getInf()
@Deprecated public double getLower()
getInf()public double getSup()
@Deprecated public double getUpper()
getSup()public double getSize()
@Deprecated public double getLength()
getSize()public double getBarycenter()
@Deprecated public double getMidPoint()
getBarycenter()public Region.Location checkPoint(double point, double tolerance)
point - point to checktolerance - tolerance below which points are considered to
belong to the boundaryRegion.Location.INSIDE, Region.Location.OUTSIDE or Region.Location.BOUNDARYCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.