Android Open Source - FreeFlow Ease In Out Quint Interpolator

From Project

Back to project page FreeFlow.


The source code is released under:

Apache License

If you think the Android project FreeFlow listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//  w ww  .j ava2 s.c  om
import android.view.animation.Interpolator;

public class EaseInOutQuintInterpolator implements Interpolator{
  // easeInOutQuint
    public float getInterpolation(float t) {
        float x = t*2.0f;
        if (t<0.5f) return 0.5f*x*x*x*x*x;
        x = (t-0.5f)*2-1;
        return 0.5f*x*x*x*x*x+1;


Java Source Code List