FileDocCategorySizeDatePackage
LogAccelerateInterpolator.javaAPI DocAndroid 5.1 API1277Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.animation

LogAccelerateInterpolator

public class LogAccelerateInterpolator extends Object implements android.animation.TimeInterpolator
hide

Fields Summary
int
mBase
int
mDrift
final float
mLogScale
Constructors Summary
public LogAccelerateInterpolator(int base, int drift)

        mBase = base;
        mDrift = drift;
        mLogScale = 1f / computeLog(1, mBase, mDrift);
    
Methods Summary
static floatcomputeLog(float t, int base, int drift)

        return (float) -Math.pow(base, -t) + 1 + (drift * t);
    
public floatgetInterpolation(float t)

        return 1 - computeLog(1 - t, mBase, mDrift) * mLogScale;