graphoutput
Class Range
java.lang.Object
|
+--graphoutput.Range
- public class Range
- extends java.lang.Object
Class Range
Defines a range
Constructor Summary |
Range()
|
Range(double min,
double max)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Range
public Range(double min,
double max)
Range
public Range()
getMin
public double getMin()
getMax
public double getMax()
getMin2
public double getMin2()
getMax2
public double getMax2()
getMin3
public double getMin3()
getMax3
public double getMax3()
checkRange
public void checkRange(double x)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
normalize
public double normalize(double v)
- calculates the relative position according to the range
between 0.0 and 1.0
fitIntoRange
public double fitIntoRange(double n)
- calculates with a given value between 0 and 1 the position
within the range