@@ -0,0 +1,1769 @@
+package reborncore.common.util;%0A%0A/*%0A * Easing Functions - taken from https://gist.github.com/gre/1650294%0A * only considering the t value for the range %5B0, 1%5D =%3E %5B0, 1%5D%0A */%0Apublic class EasingFunctions %7B%0A%0A%09// no easing, no acceleration%0A%09public double linear(double t) %7B%0A%09%09return t;%0A%09%7D%0A%0A%09// accelerating from zero velocity%0A%09public double easeInQuad(double t) %7B%0A%09%09return t * t;%0A%09%7D%0A%0A%09// decelerating to zero velocity%0A%09public double easeOutQuad(double t) %7B%0A%09%09return t * (2 - t);%0A%09%7D%0A%0A%09// acceleration until halfway, then deceleration%0A%09public double easeInOutQuad(double t) %7B%0A%09%09return t %3C .5 ? 2 * t * t : -1 + (4 - 2 * t) * t;%0A%09%7D%0A%0A%09// accelerating from zero velocity%0A%09public double easeInCubic(double t) %7B%0A%09%09return t * t * t;%0A%09%7D%0A%0A%09// decelerating to zero velocity%0A%09public double easeOutCubic(double t) %7B%0A%09%09return (--t) * t * t + 1;%0A%09%7D%0A%0A%09// acceleration until halfway, then deceleration%0A%09public double easeInOutCubic(double t) %7B%0A%09%09return t %3C .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;%0A%09%7D%0A%0A%09// accelerating from zero velocity%0A%09public double easeInQuart(double t) %7B%0A%09%09return t * t * t * t;%0A%09%7D%0A%0A%09// decelerating to zero velocity%0A%09public double easeOutQuart(double t) %7B%0A%09%09return 1 - (--t) * t * t * t;%0A%09%7D%0A%0A%09// acceleration until halfway, then deceleration%0A%09public double easeInOutQuart(double t) %7B%0A%09%09return t %3C .5 ? 8 * t * t * t * t : 1 - 8 * (--t) * t * t * t;%0A%09%7D%0A%0A%09// accelerating from zero velocity%0A%09public double easeInQuint(double t) %7B%0A%09%09return t * t * t * t * t;%0A%09%7D%0A%0A%09// decelerating to zero velocity%0A%09public double easeOutQuint(double t) %7B%0A%09%09return 1 + (--t) * t * t * t * t;%0A%09%7D%0A%0A%09// acceleration until halfway, then deceleration%0A%09public double easeInOutQuint(double t) %7B%0A%09%09return t %3C .5 ? 16 * t * t * t * t * t : 1 + 16 * (--t) * t * t * t * t;%0A%09%7D%0A%0A%7D%0A

Add EasingFunctions