|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.math.Interval
A continuous range between two doubles.
| Constructor Summary | |
Interval(double lower,
double upper)
Create an Interval between two doubles. |
|
| Method Summary | |
Interval |
add(Interval i)
Add this Interval to another one. |
Interval |
div(Interval i)
Divide this interval by another. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
static Interval |
makeIntervalCenterPercentage(double center,
float percentage)
Make an Interval with the specified center and the specified percentage difference from the center. |
static Interval |
makeIntervalCenterWidth(double center,
double difference)
Make an Interval with the specified center and difference from the center. |
Interval |
mul(Interval i)
Multiple this Interval by another one. |
Interval |
sub(Interval i)
Subtract an Interval from this Interval. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Interval(double lower,
double upper)
| Method Detail |
public static Interval makeIntervalCenterWidth(double center,
double difference)
public static Interval makeIntervalCenterPercentage(double center,
float percentage)
public Interval add(Interval i)
public Interval mul(Interval i)
public Interval div(Interval i)
public Interval sub(Interval i)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||