src/main/java/com/tajnyprojekt/tpanimation/TpEasing.java
public static float ease(float t, int easingFunction) {
        switch(easingFunction) {
            case LINEAR:        return t;
            case BASIC_INOUT:   return easeInOut(t);
            case QUAD_IN:       return Quad.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case QUAD_OUT:      return Quad.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case QUAD_INOUT:    return Quad.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case CUBIC_IN:      return Cubic.easeIn      (t, 0.0f, 1.0f, 1.0f);
            case CUBIC_OUT:     return Cubic.easeOut     (t, 0.0f, 1.0f, 1.0f);
            case CUBIC_INOUT:   return Cubic.easeInOut   (t, 0.0f, 1.0f, 1.0f);
            case QUART_IN:      return Quart.easeIn      (t, 0.0f, 1.0f, 1.0f);
            case QUART_OUT:     return Quart.easeOut     (t, 0.0f, 1.0f, 1.0f);
            case QUART_INOUT:   return Quart.easeInOut   (t, 0.0f, 1.0f, 1.0f);
            case QUINT_IN:      return Quint.easeIn      (t, 0.0f, 1.0f, 1.0f);
            case QUINT_OUT:     return Quint.easeOut     (t, 0.0f, 1.0f, 1.0f);
            case QUINT_INOUT:   return Quint.easeInOut   (t, 0.0f, 1.0f, 1.0f);
            case SINE_IN:       return Sine.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case SINE_OUT:      return Sine.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case SINE_INOUT:    return Sine.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case CIRC_IN:       return Circ.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case CIRC_OUT:      return Circ.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case CIRC_INOUT:    return Circ.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case EXPO_IN:       return Expo.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case EXPO_OUT:      return Expo.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case EXPO_INOUT:    return Expo.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case BACK_IN:       return Back.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case BACK_OUT:      return Back.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case BACK_INOUT:    return Back.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case BOUNCE_IN:     return Bounce.easeIn     (t, 0.0f, 1.0f, 1.0f);
            case BOUNCE_OUT:    return Bounce.easeOut    (t, 0.0f, 1.0f, 1.0f);
            case BOUNCE_INOUT:  return Bounce.easeInOut  (t, 0.0f, 1.0f, 1.0f);
            case ELASTIC_IN:    return Elastic.easeIn    (t, 0.0f, 1.0f, 1.0f);
            case ELASTIC_OUT:   return Elastic.easeOut   (t, 0.0f, 1.0f, 1.0f);
            case ELASTIC_INOUT: return Elastic.easeInOut (t, 0.0f, 1.0f, 1.0f);
            default: {
                TpAnimation.log("TpEasing ease - easing function with number "
                        + easingFunction +" does not exist. Using LINEAR instead", true);
                return t;
            }
        }
    }
/**
     * Applies easing with the selected function.<br>
     * Uses LINEAR easing when number passed as <code>easingFunction</code> does not match to any available<br>
     * @param t the <i>time</i> value to be eased, range 0..1
     * @param easingFunction number indicating which easing function to use
     * @return the eased value, range 0..1
     * @see TpEasing available easing functions.
     */
Applies easing with the selected function.
Uses LINEAR easing when number passed as easingFunction does not match to any available
@param t the time value to be eased, range 0..1
@param easingFunction number indicating which easing function to use
@return the eased value, range 0..1
@see TpEasing available easing functions.
Applies easing with the selected function . Uses LINEAR easing when number passed as easingFunction does not match to any available @param t the time value to be eased range 0 .. 1 @param easingFunction number indicating which easing function to use @return the eased value range 0 .. 1 @see TpEasing available easing functions .
public static float ease(float t, int easingFunction) {
        switch(easingFunction) {
            case LINEAR:        return t;
            case BASIC_INOUT:   return easeInOut(t);
            case QUAD_IN:       return Quad.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case QUAD_OUT:      return Quad.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case QUAD_INOUT:    return Quad.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case CUBIC_IN:      return Cubic.easeIn      (t, 0.0f, 1.0f, 1.0f);
            case CUBIC_OUT:     return Cubic.easeOut     (t, 0.0f, 1.0f, 1.0f);
            case CUBIC_INOUT:   return Cubic.easeInOut   (t, 0.0f, 1.0f, 1.0f);
            case QUART_IN:      return Quart.easeIn      (t, 0.0f, 1.0f, 1.0f);
            case QUART_OUT:     return Quart.easeOut     (t, 0.0f, 1.0f, 1.0f);
            case QUART_INOUT:   return Quart.easeInOut   (t, 0.0f, 1.0f, 1.0f);
            case QUINT_IN:      return Quint.easeIn      (t, 0.0f, 1.0f, 1.0f);
            case QUINT_OUT:     return Quint.easeOut     (t, 0.0f, 1.0f, 1.0f);
            case QUINT_INOUT:   return Quint.easeInOut   (t, 0.0f, 1.0f, 1.0f);
            case SINE_IN:       return Sine.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case SINE_OUT:      return Sine.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case SINE_INOUT:    return Sine.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case CIRC_IN:       return Circ.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case CIRC_OUT:      return Circ.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case CIRC_INOUT:    return Circ.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case EXPO_IN:       return Expo.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case EXPO_OUT:      return Expo.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case EXPO_INOUT:    return Expo.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case BACK_IN:       return Back.easeIn       (t, 0.0f, 1.0f, 1.0f);
            case BACK_OUT:      return Back.easeOut      (t, 0.0f, 1.0f, 1.0f);
            case BACK_INOUT:    return Back.easeInOut    (t, 0.0f, 1.0f, 1.0f);
            case BOUNCE_IN:     return Bounce.easeIn     (t, 0.0f, 1.0f, 1.0f);
            case BOUNCE_OUT:    return Bounce.easeOut    (t, 0.0f, 1.0f, 1.0f);
            case BOUNCE_INOUT:  return Bounce.easeInOut  (t, 0.0f, 1.0f, 1.0f);
            case ELASTIC_IN:    return Elastic.easeIn    (t, 0.0f, 1.0f, 1.0f);
            case ELASTIC_OUT:   return Elastic.easeOut   (t, 0.0f, 1.0f, 1.0f);
            case ELASTIC_INOUT: return Elastic.easeInOut (t, 0.0f, 1.0f, 1.0f);
            default: {
                TpAnimation.log("TpEasing ease - easing function with number "
                        + easingFunction +" does not exist. Using LINEAR instead", true);
                return t;
            }
        }
    }
public static float ease ( float t , int easingFunction ) { switch ( easingFunction ) { case LINEAR : return t ; case BASIC_INOUT : return easeInOut ( t ) ; case QUAD_IN : return Quad . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case QUAD_OUT : return Quad . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case QUAD_INOUT : return Quad . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case CUBIC_IN : return Cubic . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case CUBIC_OUT : return Cubic . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case CUBIC_INOUT : return Cubic . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case QUART_IN : return Quart . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case QUART_OUT : return Quart . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case QUART_INOUT : return Quart . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case QUINT_IN : return Quint . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case QUINT_OUT : return Quint . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case QUINT_INOUT : return Quint . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case SINE_IN : return Sine . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case SINE_OUT : return Sine . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case SINE_INOUT : return Sine . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case CIRC_IN : return Circ . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case CIRC_OUT : return Circ . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case CIRC_INOUT : return Circ . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case EXPO_IN : return Expo . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case EXPO_OUT : return Expo . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case EXPO_INOUT : return Expo . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case BACK_IN : return Back . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case BACK_OUT : return Back . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case BACK_INOUT : return Back . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case BOUNCE_IN : return Bounce . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case BOUNCE_OUT : return Bounce . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case BOUNCE_INOUT : return Bounce . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; case ELASTIC_IN : return Elastic . easeIn ( t , 0.0f , 1.0f , 1.0f ) ; case ELASTIC_OUT : return Elastic . easeOut ( t , 0.0f , 1.0f , 1.0f ) ; case ELASTIC_INOUT : return Elastic . easeInOut ( t , 0.0f , 1.0f , 1.0f ) ; default : { TpAnimation . log ( "TpEasing ease - easing function with number " + easingFunction + " does not exist. Using LINEAR instead" , true ) ; return t ; } } }
Applies easing with the selected function.<br>
 Uses LINEAR easing when number passed as <code>easingFunction</code> does not match to any available<br>
 @param t the <i>time</i> value to be eased, range 0..1
 @param easingFunction number indicating which easing function to use
 @return the eased value, range 0..1
 @see TpEasing available easing functions.
Applies easing with the selected function . <br > Uses LINEAR easing when number passed as <code > easingFunction< / code > does not match to any available<br > @param t the <i > time< / i > value to be eased range 0 .. 1 @param easingFunction number indicating which easing function to use @return the eased value range 0 .. 1 @see TpEasing available easing functions .