jpicedt.util.math
Class Interval
java.lang.Object
jpicedt.util.math.Interval
- All Implemented Interfaces:
- Cloneable
public class Interval
- extends Object
- implements Cloneable
- Since:
- jPicEdt 1.6
- Author:
- Vincent Belaïche
Interval
public Interval(double min,
double max)
Interval
public Interval(Interval x)
Interval
public Interval(double[] a)
Interval
public Interval()
clone
public Interval clone()
- Overrides:
clone
in class Object
getMin
public double getMin()
getMax
public double getMax()
isEmpty
public boolean isEmpty()
set
public void set(double min,
double max)
- Affecte les bornes de l'intervalle.
- Parameters:
min
- une valeur double
donnant la nouvelle borne min
de l'intervallemax
- une valeur double
donnant la nouvelle borne max
de l'intervalle
setToR
public void setToR()
setToEmpty
public void setToEmpty()
equals
public boolean equals(Interval x)
contains
public boolean contains(double x)
intersects
public boolean intersects(Interval other)
intersect
public Interval intersect(Interval other)
cloneIntersect
public Interval cloneIntersect(Interval other)
toString
public String toString()
- Overrides:
toString
in class Object
Submit a bug : syd@jpicedt.org