Package doodlepad.easing
Class Elastic
java.lang.Object
doodlepad.easing.Elastic
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 a oscillating back and forth as it eases-instatic double
easeInOut
(double t, double b, double c, double d) A function to compute a oscillating back and forth as it eases-in and as it eases-out.static double
easeOut
(double t, double b, double c, double d) A function to compute a oscillating back and forth as it eases-out
-
Constructor Details
-
Elastic
public Elastic()
-
-
Method Details
-
easeIn
public static double easeIn(double t, double b, double c, double d) A function to compute a oscillating back and forth as it eases-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 a oscillating back and forth as it eases-out- 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 a oscillating back and forth as it eases-in and as it eases-out.- Parameters:
t
- Current timeb
- Minimum valuec
- Change in valued
- Maximum time- Returns:
- Easing value
-