NASA World Wind

gov.nasa.worldwind.animation
Class SmoothInterpolator

java.lang.Object
  extended by gov.nasa.worldwind.animation.ScheduledInterpolator
      extended by gov.nasa.worldwind.animation.SmoothInterpolator
All Implemented Interfaces:
Interpolator

public class SmoothInterpolator
extends ScheduledInterpolator


Constructor Summary
SmoothInterpolator(long lengthMillis)
           
 
Method Summary
protected static double basicInterpolant(double interpolant, double startInterpolant, double stopInterpolant, int maxSmoothing)
           
 double nextInterpolant()
          Returns the next interpolant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothInterpolator

public SmoothInterpolator(long lengthMillis)
Method Detail

basicInterpolant

protected static double basicInterpolant(double interpolant,
                                         double startInterpolant,
                                         double stopInterpolant,
                                         int maxSmoothing)

nextInterpolant

public double nextInterpolant()
Description copied from interface: Interpolator
Returns the next interpolant

Specified by:
nextInterpolant in interface Interpolator
Overrides:
nextInterpolant in class ScheduledInterpolator
Returns:
a value between 0 and 1 that represents the next position of the interpolant.

NASA World Wind