Interface Easing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
easeIn(float time, float begin, float change, float duration)
Easing in - accelerating from zero velocity.float
easeInOut(float time, float begin, float change, float duration)
Easing in and out - acceleration until halfway, then deceleration.float
easeOut(float time, float begin, float change, float duration)
Easing out - decelerating to zero velocity.
-
-
-
Method Detail
-
easeIn
float easeIn(float time, float begin, float change, float duration)
Easing in - accelerating from zero velocity.- Parameters:
time
- The current time since the beginning, or how long into the easing we are.begin
- The beginning position.change
- The total change in position.duration
- The total duration of the easing.- Returns:
- The updated position at the current point in time, according to the easing equation.
-
easeOut
float easeOut(float time, float begin, float change, float duration)
Easing out - decelerating to zero velocity.- Parameters:
time
- The current time since the beginning, or how long into the easing we are.begin
- The beginning position.change
- The total change in position.duration
- The total duration of the easing.- Returns:
- The updated position at the current point in time, according to the easing equation.
-
easeInOut
float easeInOut(float time, float begin, float change, float duration)
Easing in and out - acceleration until halfway, then deceleration.- Parameters:
time
- The current time since the beginning, or how long into the easing we are.begin
- The beginning position.change
- The total change in position.duration
- The total duration of the easing.- Returns:
- The updated position at the current point in time, according to the easing equation.
-
-