Class Interval
- java.lang.Object
- 
- org.hipparchus.geometry.euclidean.oned.Interval
 
- 
 public class Interval extends Object This class represents a 1D interval.- See Also:
- IntervalsSet
 
- 
- 
Constructor SummaryConstructors Constructor Description Interval(double lower, double upper)Simple constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Region.LocationcheckPoint(double point, double tolerance)Check a point with respect to the interval.doublegetBarycenter()Get the barycenter of the interval.doublegetInf()Get the lower bound of the interval.doublegetSize()Get the size of the interval.doublegetSup()Get the upper bound of the interval.
 
- 
- 
- 
Method Detail- 
getInfpublic double getInf() Get the lower bound of the interval.- Returns:
- lower bound of the interval
 
 - 
getSuppublic double getSup() Get the upper bound of the interval.- Returns:
- upper bound of the interval
 
 - 
getSizepublic double getSize() Get the size of the interval.- Returns:
- size of the interval
 
 - 
getBarycenterpublic double getBarycenter() Get the barycenter of the interval.- Returns:
- barycenter of the interval
 
 - 
checkPointpublic Region.Location checkPoint(double point, double tolerance) Check a point with respect to the interval.- Parameters:
- point- point to check
- tolerance- tolerance below which points are considered to belong to the boundary
- Returns:
- a code representing the point status: either Region.Location.INSIDE,Region.Location.OUTSIDEorRegion.Location.BOUNDARY
 
 
- 
 
-