Package doodlepad.easing
Class Sine
java.lang.Object
doodlepad.easing.Sine
Robert Penner's easing functions in Java
 (See https://github.com/jesusgollonet/processing-penner-easing)
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic doubleeaseIn(double t, double b, double c, double d) A function to compute an easing-in that follows a sine curvestatic doubleeaseInOut(double t, double b, double c, double d) A function to compute an easing-in and easing-out that follows a sine curvestatic doubleeaseOut(double t, double b, double c, double d) A function to compute an easing-out that follows a sine curve 
- 
Constructor Details
- 
Sine
public Sine() 
 - 
 - 
Method Details
- 
easeIn
public static double easeIn(double t, double b, double c, double d) A function to compute an easing-in that follows a sine curve- 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 an easing-out that follows a sine curve- 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 an easing-in and easing-out that follows a sine curve- Parameters:
 t- Current timeb- Minimum valuec- Change in valued- Maximum time- Returns:
 - Easing value
 
 
 -