|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.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(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. |
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 String toString()
public boolean equals(Object obj)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||