public abstract class SpeedInterpolationProvider extends java.lang.Object implements MapWidgetAnimationInterpolatorInterface
Constructor and Description |
---|
SpeedInterpolationProvider(float to,
float speed) |
Modifier and Type | Method and Description |
---|---|
abstract float |
getCurrentValue()
Obtains the current value as a floating point number that represents an interpolation of the
current speed.
|
boolean |
interpolate(long timeInMs)
Implementation of navigation interpolation.
|
protected boolean |
isClose(float value1,
float value2) |
abstract void |
setNewValue(float newValue)
Allows for a new value to be added into the interpolation provider to be considered.
|
public SpeedInterpolationProvider(float to, float speed)
public abstract float getCurrentValue()
public abstract void setNewValue(float newValue)
newValue
- the value to add in for consideration.public boolean interpolate(long timeInMs)
MapWidgetAnimationInterpolatorInterface
interpolate
in interface MapWidgetAnimationInterpolatorInterface
timeInMs
- provides a new time in ms and attempts to compute an interpolated value.protected boolean isClose(float value1, float value2)