FileDocCategorySizeDatePackage
LogDecelerateInterpolator.javaAPI DocAndroid 5.1 API1287Thu Mar 12 22:22:42 GMT 2015com.android.internal.policy.impl

LogDecelerateInterpolator

public class LogDecelerateInterpolator extends Object implements android.view.animation.Interpolator

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

        mBase = base;
        mDrift = drift;

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

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

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