public class FallbackLUTInterpolator extends Object implements NativeInterpolatorFactory, TimeInterpolator
HasNativeInterpolator
This implements TimeInterpolator to allow for easier interop with AnimatorsConstructor and Description |
---|
FallbackLUTInterpolator(TimeInterpolator interpolator,
long duration)
Used to cache the float[] LUT for use across multiple native
interpolator creation
|
Modifier and Type | Method and Description |
---|---|
long |
createNativeInterpolator() |
static long |
createNativeInterpolator(TimeInterpolator interpolator,
long duration)
Used to create a one-shot float[] LUT & native interpolator
|
float |
getInterpolation(float input)
Maps a value representing the elapsed fraction of an animation to a value that represents
the interpolated fraction.
|
public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration)
public long createNativeInterpolator()
createNativeInterpolator
in interface NativeInterpolatorFactory
public static long createNativeInterpolator(TimeInterpolator interpolator, long duration)
public float getInterpolation(float input)
TimeInterpolator
getInterpolation
in interface TimeInterpolator
input
- A value between 0 and 1.0 indicating our current point
in the animation where 0 represents the start and 1.0 represents
the end