quadratic Out Ease animation value - Java java.lang

Java examples for java.lang:Math Geometry

Description

quadratic Out Ease animation value

Demo Code


//package com.java2s;

public class Main {


    public static int quadraticOutEase(float currentTime, float startValue,
            float changeInValue, float duration) {
        currentTime /= duration;//from  w w  w  .ja  va  2 s  .c  om
        int returnValue = (int) (-changeInValue * currentTime
                * (currentTime - 2) + startValue);

        return returnValue;
    }
}

Related Tutorials