Package 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
-
-
Constructor Summary
Constructors Constructor Description SmoothInterpolator(long lengthMillis)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static doublebasicInterpolant(double interpolant, double startInterpolant, double stopInterpolant, int maxSmoothing)doublenextInterpolant()Returns the next interpolant
-
-
-
Method Detail
-
nextInterpolant
public double nextInterpolant()
Description copied from interface:InterpolatorReturns the next interpolant- Specified by:
nextInterpolantin interfaceInterpolator- Overrides:
nextInterpolantin classScheduledInterpolator- Returns:
- a value between 0 and 1 that represents the next position of the interpolant.
-
basicInterpolant
protected static double basicInterpolant(double interpolant, double startInterpolant, double stopInterpolant, int maxSmoothing)
-
-