Class Floats


  • public final class Floats
    extends Object
    Mathematical utility class for real numbers represented as float, especially float[].
    Author:
    Hendrik Schreiber
    See Also:
    Floats
    • Method Detail

      • scale

        public static void scale​(float[] array,
                                 float scale)
        Scale the values in the given array so that the maximum is scale Note: This method manipulates the provided array.
        Parameters:
        array - array of floats
        scale - scale
      • rotate

        public static float[] rotate​(float[] a,
                                     int distance)
        Rotates the contents of an array (i.e. a copy of that same array).
        Parameters:
        a - array
        distance - distance
        Returns:
        new array, that has been rotated
        See Also:
        Collections.rotate(java.util.List, int)