http://www.jpicedt.org

jpicedt.util.math
Class Interval

java.lang.Object
  extended by jpicedt.util.math.Interval
All Implemented Interfaces:
Cloneable

public class Interval
extends Object
implements Cloneable

Since:
jPicEdt 1.6
Author:
Vincent Belaïche

Constructor Summary
Interval()
           
Interval(double[] a)
           
Interval(double min, double max)
           
Interval(Interval x)
           
 
Method Summary
 Interval clone()
           
 Interval cloneIntersect(Interval other)
           
 boolean contains(double x)
           
 boolean equals(Interval x)
           
 double getMax()
           
 double getMin()
           
 Interval intersect(Interval other)
           
 boolean intersects(Interval other)
           
 boolean isEmpty()
           
 void set(double min, double max)
          Affecte les bornes de l'intervalle.
 void setToEmpty()
           
 void setToR()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Interval

public Interval(double min,
                double max)

Interval

public Interval(Interval x)

Interval

public Interval(double[] a)

Interval

public Interval()
Method Detail

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'intervalle
max - 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

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org