Class Scale

  • Direct Known Subclasses:
    Range

    public class Scale
    extends Object
    • Field Detail

      • min

        protected float min
      • max

        protected float max
    • Constructor Detail

      • Scale

        public Scale​(float min,
                     float max)
      • Scale

        public Scale​(double min,
                     double max)
    • Method Detail

      • getMin

        public float getMin()
      • getMax

        public float getMax()
      • getRange

        public float getRange()
      • setMin

        public void setMin​(float min)
      • setMax

        public void setMax​(float max)
      • add

        public Scale add​(float value)
      • contains

        public boolean contains​(float value)
      • isMaxNan

        public boolean isMaxNan()
      • isMinNan

        public boolean isMinNan()
      • isIn

        public boolean isIn​(float value)
      • isIn

        public boolean isIn​(float value,
                            boolean includingMin,
                            boolean includingMax)
      • valid

        public boolean valid()
      • enlarge

        public static Scale enlarge​(Scale input,
                                    float ratio)
      • enlargeSelf

        public void enlargeSelf​(double ratio)