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 double
basicInterpolant(double interpolant, double startInterpolant, double stopInterpolant, int maxSmoothing)
double
nextInterpolant()
Returns the next interpolant
-
-
-
Method Detail
-
nextInterpolant
public double nextInterpolant()
Description copied from interface:Interpolator
Returns the next interpolant- Specified by:
nextInterpolant
in interfaceInterpolator
- Overrides:
nextInterpolant
in 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)
-
-