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) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Scale

        public Scale(float startFrom,
                     float endFrom,
                     float startTo,
                     float endTo)
      • Scale

        public Scale(Range<java.lang.Float> rangeFrom,
                     Range<java.lang.Float> rangeTo)
    • Method Detail

      • linear

        public float linear(float num)
      • exponential

        public float exponential(float num)