org.esa.beam.util.math
Class FracIndex

java.lang.Object
  extended by org.esa.beam.util.math.FracIndex

public final class FracIndex
extends Object

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

i

public int i
The integral component.


f

public double f
The fractional component.

Constructor Detail

FracIndex

public FracIndex()
Method Detail

createArray

public static FracIndex[] createArray(int length)
Creates an array of type FracIndex[].

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.



Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.