gov.nasa.worldwind.animation
Class SmoothInterpolator
java.lang.Object
gov.nasa.worldwind.animation.ScheduledInterpolator
gov.nasa.worldwind.animation.SmoothInterpolator
- All Implemented Interfaces:
- Interpolator
public class SmoothInterpolator
- extends ScheduledInterpolator
|
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 |
SmoothInterpolator
public SmoothInterpolator(long lengthMillis)
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.