public final class FracIndex extends Object
FracIndex is a simple representation of
an index with an integral and a fractional component.| Modifier and Type | Field and Description |
|---|---|
double |
f
The fractional component.
|
int |
i
The integral component.
|
| Constructor and Description |
|---|
FracIndex() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static FracIndex[] createArray(int length)
FracIndex[].length - the length of the array being created.public final void truncate()
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.