org.jzy3d.maths
Class Scale

java.lang.Object
  extended by org.jzy3d.maths.Scale
Direct Known Subclasses:
Range

public class Scale
extends java.lang.Object


Constructor Summary
Scale(double min, double max)
           
 
Method Summary
 Scale add(double value)
           
 Scale clone()
           
 boolean contains(double value)
           
static Scale enlarge(Scale input, double ratio)
           
 double getMax()
           
 double getMin()
           
 double getRange()
           
 boolean isMaxNan()
           
 boolean isMinNan()
           
 void setMax(double max)
           
 void setMin(double min)
           
static Scale thinest(Scale scale1, Scale scale2)
           
 java.lang.String toString()
           
 boolean valid()
           
static Scale widest(Scale scale1, Scale scale2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Scale

public Scale(double min,
             double max)
Method Detail

clone

public Scale clone()
Overrides:
clone in class java.lang.Object

getMin

public double getMin()

getMax

public double getMax()

getRange

public double getRange()

setMin

public void setMin(double min)

setMax

public void setMax(double max)

add

public Scale add(double value)

contains

public boolean contains(double value)

isMaxNan

public boolean isMaxNan()

isMinNan

public boolean isMinNan()

valid

public boolean valid()

widest

public static Scale widest(Scale scale1,
                           Scale scale2)

thinest

public static Scale thinest(Scale scale1,
                            Scale scale2)

enlarge

public static Scale enlarge(Scale input,
                            double ratio)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object