Package org.esa.snap.core.util.math
Class FracIndex
- java.lang.Object
-
- org.esa.snap.core.util.math.FracIndex
-
public final class FracIndex extends Object
The classFracIndex
is a simple representation of an index with an integral and a fractional component.
-
-
Constructor Summary
Constructors Constructor Description FracIndex()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FracIndex[]
createArray(int length)
Creates an array of typeFracIndex[]
.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.
-
-
-
Method Detail
-
createArray
public static FracIndex[] createArray(int length)
Creates an array of typeFracIndex[]
.- Parameters:
length
- the length of the array being created.- Returns:
- the created array.
-
truncate
public final 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.
-
-