|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.util.math.FracIndex
public final class FracIndex
The class FracIndex is a simple representation of
an index with an integral and a fractional component.
| Field Summary | |
|---|---|
double |
f
The fractional component. |
int |
i
The integral component. |
| Constructor Summary | |
|---|---|
FracIndex()
|
|
| Method Summary | |
|---|---|
static FracIndex[] |
createArray(int length)
Creates an array of type FracIndex[]. |
void |
truncate()
Sets the fractional component to 0.0 if it is less than zero, and to 1.0 if it is greater than unity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int i
public double f
| Constructor Detail |
|---|
public FracIndex()
| Method Detail |
|---|
public static FracIndex[] createArray(int length)
FracIndex[].
length - the length of the array being created.
public final void truncate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||