MotionInterpolator


public abstract class MotionInterpolator implements Interpolator

Known direct subclasses
StopLogic

This contains the class to provide the logic for an animation to come to a stop.


Defines an interpolator that can return velocity

Summary

Public constructors

Public methods

abstract float

Gets the interpolated given the original interpolation

abstract float

Gets the velocity at the last interpolated point

Public constructors

MotionInterpolator

Added in 2.2.0
public MotionInterpolator()

Public methods

getInterpolation

public abstract float getInterpolation(float v)

Gets the interpolated given the original interpolation

Parameters
float v
Returns
float

getVelocity

Added in 2.2.0
public abstract float getVelocity()

Gets the velocity at the last interpolated point

Returns
float