Package com.tagtraum.audiokern.math
Class Floats
- java.lang.Object
-
- com.tagtraum.audiokern.math.Floats
-
public final class Floats extends Object
Mathematical utility class for real numbers represented asfloat
, especiallyfloat[]
.- Author:
- Hendrik Schreiber
- See Also:
Floats
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float[]
rotate(float[] a, int distance)
Rotates the contents of an array (i.e.static void
scale(float[] array, float scale)
Scale the values in the given array so that the maximum isscale
Note: This method manipulates the provided array.
-
-
-
Method Detail
-
scale
public static void scale(float[] array, float scale)
Scale the values in the given array so that the maximum isscale
Note: This method manipulates the provided array.- Parameters:
array
- array of floatsscale
- 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
- arraydistance
- distance- Returns:
- new array, that has been rotated
- See Also:
Collections.rotate(java.util.List, int)
-
-