edu.cmu.sun.interpolators
Class SimpleFloatSmoother

java.lang.Object
  extended by 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
           
 
Constructor Summary
SimpleFloatSmoother()
           
 
Method Summary
 float getFinalValue()
           
 float getLatestValue()
           
 float getValue(float n)
           
 void setInternalValue(float v)
           
 void setTargetValue(float t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromVal

float fromVal

toVal

float toVal

currentVal

float currentVal
Constructor Detail

SimpleFloatSmoother

public SimpleFloatSmoother()
Method Detail

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()