Class Quintic
- java.lang.Object
-
- org.apache.pivot.wtk.effects.easing.Quintic
-
-
Constructor Summary
Constructors Constructor Description Quintic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floateaseIn(float time, float begin, float change, float duration)Easing in - accelerating from zero velocity.floateaseInOut(float time, float begin, float change, float duration)Easing in and out - acceleration until halfway, then deceleration.floateaseOut(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:EasingEasing in - accelerating from zero velocity.- Specified by:
easeInin 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:EasingEasing out - decelerating to zero velocity.- Specified by:
easeOutin 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:EasingEasing in and out - acceleration until halfway, then deceleration.- Specified by:
easeInOutin 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.
-
-