package com.xdroid.animation.interpolate;
import android.content.Context;
import android.util.AttributeSet;
import android.view.animation.Interpolator;
/**
* Created by cimi on 15/7/3.
*/
public class EaseExponentialInInterpolator implements Interpolator {
public EaseExponentialInInterpolator() {}
public EaseExponentialInInterpolator(Context context, AttributeSet attrs) {}
public float getInterpolation(float input) {
return (float) ((input == 0) ? 0 : 1 * Math.pow(2, 10 * (input - 1)) - 0.001f);
}
}