Class 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 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.