public class Interval extends Object
IntervalsSet
Constructor and Description |
---|
Interval(double lowerIn,
double upperIn)
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 |
getSize()
Get the size of the interval.
|
double |
getSup()
Get the upper bound of the interval.
|
public Interval(double lowerIn, double upperIn)
lowerIn
- lower bound of the intervalupperIn
- upper bound of the intervalpublic double getInf()
public double getSup()
public double getSize()
public double 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.BOUNDARY
Copyright © 2019 CNES. All Rights Reserved.