Package doodlepad.easing
Class Linear
java.lang.Object
doodlepad.easing.Linear
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 linear easing-instatic double
easeInOut
(double t, double b, double c, double d) A function to compute a linear easing-in and easing-outstatic double
easeNone
(double t, double b, double c, double d) A function that performs no easingstatic double
easeOut
(double t, double b, double c, double d) A function to compute a linear easing-out
-
Constructor Details
-
Linear
public Linear()
-
-
Method Details
-
easeNone
public static double easeNone(double t, double b, double c, double d) A function that performs no easing- Parameters:
t
- Current timeb
- Minimum valuec
- Change in valued
- Maximum time- Returns:
- Easing value
-
easeIn
public static double easeIn(double t, double b, double c, double d) A function to compute a linear 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 a linear easing-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 linear easing-in and easing-out- Parameters:
t
- Current timeb
- Minimum valuec
- Change in valued
- Maximum time- Returns:
- Easing value
-