edu.cmu.sun.interpolators
Class SmoothInterpolator1D

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

public class SmoothInterpolator1D
extends Interpolator1D

Similar to the linear interpolator, except that it smooths the interpolation using trig functions. (So it's relatively fast) Ideally, we'd use Bezier curves in the system, but we go with this because it's simple enough for now.

Author:
Braden Kowitz

Field Summary
(package private)  float diff
           
 
Fields inherited from class edu.cmu.sun.interpolators.Interpolator1D
from, to
 
Constructor Summary
SmoothInterpolator1D(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
 

Field Detail

diff

float diff
Constructor Detail

SmoothInterpolator1D

public SmoothInterpolator1D(float from,
                            float to)
Method Detail

get

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