Package doodlepad.easing
Class Back
java.lang.Object
doodlepad.easing.Back
Robert Penner's easing functions in Java
(See https://github.com/jesusgollonet/processing-penner-easing)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
easeIn
(double t, double b, double c, double d) A function to compute slight overshoot before easing-instatic double
easeInOut
(double t, double b, double c, double d) A function to compute slight retraction before easing-outstatic double
easeOut
(double t, double b, double c, double d) A function to compute slight retraction before easing-out followed by a slight overshoot before easing-in.
-
Constructor Details
-
Back
public Back()
-
-
Method Details
-
easeIn
public static double easeIn(double t, double b, double c, double d) A function to compute slight overshoot before easing-in- Parameters:
t
- Current timeb
- Minimum valuec
- Change in valued
- Maximum time- Returns:
- Easing value
-
easeOut
public static double easeOut(double t, double b, double c, double d) A function to compute slight retraction before easing-out followed by a slight overshoot before easing-in.- Parameters:
t
- Current timeb
- Minimum valuec
- Change in valued
- Maximum time- Returns:
- Easing value
-
easeInOut
public static double easeInOut(double t, double b, double c, double d) A function to compute slight retraction before easing-out- Parameters:
t
- Current timeb
- Minimum valuec
- Change in valued
- Maximum time- Returns:
- Easing value
-