Class Circular
- java.lang.Object
-
- org.apache.pivot.wtk.effects.easing.Circular
-
-
Constructor Summary
Constructors Constructor Description Circular()
-
Method Summary
All Methods Instance Methods Concrete 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
public float easeIn(float time, float begin, float change, float duration)
Description copied from interface:Easing
Easing in - accelerating from zero velocity.- Specified by:
easeIn
in interfaceEasing
- 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
public float easeOut(float time, float begin, float change, float duration)
Description copied from interface:Easing
Easing out - decelerating to zero velocity.- Specified by:
easeOut
in interfaceEasing
- 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
public float easeInOut(float time, float begin, float change, float duration)
Description copied from interface:Easing
Easing in and out - acceleration until halfway, then deceleration.- Specified by:
easeInOut
in interfaceEasing
- 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.
-
-