edu.cmu.sun.interpolators
Class SimpleFloatSmoother
java.lang.Object
edu.cmu.sun.interpolators.SimpleFloatSmoother
public class SimpleFloatSmoother
- extends java.lang.Object
Built for PLG, this smother does linear translations between values.
- Author:
- Braden Kowitz
|
Field Summary |
(package private) float |
currentVal
|
(package private) float |
fromVal
|
(package private) float |
toVal
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromVal
float fromVal
toVal
float toVal
currentVal
float currentVal
SimpleFloatSmoother
public SimpleFloatSmoother()
setTargetValue
public void setTargetValue(float t)
setInternalValue
public void setInternalValue(float v)
getValue
public float getValue(float n)
getLatestValue
public float getLatestValue()
getFinalValue
public float getFinalValue()