edu.cmu.sun.interpolators
Class LinearInterpolator1D

java.lang.Object
  extended by edu.cmu.sun.interpolators.Interpolator1D
      extended by edu.cmu.sun.interpolators.LinearInterpolator1D

public class LinearInterpolator1D
extends Interpolator1D

Interpolates between the from and to values in a linear fashion.

Author:
Braden Kowitz

Field Summary
 
Fields inherited from class edu.cmu.sun.interpolators.Interpolator1D
from, to
 
Constructor Summary
LinearInterpolator1D(float from, float to)
           
 
Method Summary
 float get(float value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearInterpolator1D

public LinearInterpolator1D(float from,
                            float to)
Method Detail

get

public float get(float value)
Specified by:
get in class Interpolator1D