Package uk.ac.qmul.eecs.depic.patterns
Class MathUtils.Scale
- java.lang.Object
-
- uk.ac.qmul.eecs.depic.patterns.MathUtils.Scale
-
- Enclosing class:
- MathUtils
public static class MathUtils.Scale extends java.lang.Object
Scales a float from one range of values to another. The scaling can be either lineas or exponential.
-
-
Constructor Summary
Constructors Constructor and Description Scale(float startFrom, float endFrom, float startTo, float endTo)
Scale(Range<java.lang.Float> rangeFrom, Range<java.lang.Float> rangeTo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description float
exponential(float num)
float
linear(float num)
-