SpringInterpolator.java
688 Bytes
package com.bitstrips.imoji.abv3;
import android.view.animation.Interpolator;
public class SpringInterpolator
implements Interpolator
{
double a = 1.0D;
double b = 10.0D;
public SpringInterpolator(double paramDouble1, double paramDouble2)
{
this.a = paramDouble1;
this.b = paramDouble2;
}
public float getInterpolation(float paramFloat)
{
return (float)(-1.0D * Math.pow(2.718281828459045D, -paramFloat / this.a) * Math.cos(this.b * paramFloat) + 1.0D);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/abv3/SpringInterpolator.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/