public class Ease
extends java.lang.Object
lerp()
type functions to give a non-linear scaling between the
start (0) and end (1) of an interpolated sequence. The most common application will be
in animated transitions where animation speed varies between the start and end points.Modifier and Type | Method and Description |
---|---|
static float |
bounceIn(float t)
Provides a parabolic bouncing easing in function.
|
static float |
bounceIn(float t,
float direction)
Provides a reversible parabolic bouncing easing in function.
|
static float |
bounceOut(float t)
Provides a parabolic bouncing easing out function.
|
static float |
bounceOut(float t,
float direction)
Provides a reversible parabolic bouncing easing out function.
|
static float |
cubicBoth(float t)
Provides a cubic easing in and out function.
|
static float |
cubicIn(float t)
Provides a cubic easing in function.
|
static float |
cubicIn(float t,
float direction)
Provides a reversible cubic easing in function.
|
static float |
cubicOut(float t)
Provides a cubic easing out function.
|
static float |
cubicOut(float t,
float direction)
Provides a reversible cubic easing out function.
|
static float |
elasticIn(float t)
Provides an elastic easing in function simulating a 'pinged' elastic.
|
static float |
elasticOut(float t)
Provides an elastic easing out function simulating an increasingly agitated elastic.
|
static float |
quarticBoth(float t)
Provides a quartic easing in and out function.
|
static float |
quarticIn(float t)
Provides a quartic easing in function.
|
static float |
quarticIn(float t,
float direction)
Provides a reversible quartic easing in function.
|
static float |
quarticOut(float t)
Provides a quartic easing out function.
|
static float |
quarticOut(float t,
float direction)
Provides a reversible quartic easing out function.
|
static float |
quinticBoth(float t)
Provides a quintic easing in and out function.
|
static float |
quinticIn(float t)
Provides a quintic easing in function.
|
static float |
quinticIn(float t,
float direction)
Provides a reversible quintic easing in function.
|
static float |
quinticOut(float t)
Provides a quintic easing out function.
|
static float |
quinticOut(float t,
float direction)
Provides a reversible quintic easing out function.
|
static float |
sinBoth(float t)
Provides a sinusoidal easing in and out function.
|
static float |
sinIn(float t)
Provides a sinusoidal easing in function.
|
static float |
sinIn(float t,
float direction)
Provides a reversible sinusoidal easing in function.
|
static float |
sinOut(float t)
Provides a sinusoidal easing out function.
|
static float |
sinOut(float t,
float direction)
Provides a reversible sinusoidal easing out function.
|
public static float sinIn(float t)
t
- Time value between 0-1.public static float sinIn(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float sinOut(float t)
t
- Time value between 0-1.public static float sinOut(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float sinBoth(float t)
t
- Time value between 0-1.public static float cubicIn(float t)
t
- Time value between 0-1.public static float cubicIn(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float cubicOut(float t)
t
- Time value between 0-1.public static float cubicOut(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float cubicBoth(float t)
t
- Time value between 0-1.public static float quarticIn(float t)
t
- Time value between 0-1.public static float quarticIn(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float quarticOut(float t)
t
- Time value between 0-1.public static float quarticOut(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float quarticBoth(float t)
t
- Time value between 0-1.public static float quinticIn(float t)
t
- Time value between 0-1.public static float quinticIn(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float quinticOut(float t)
t
- Time value between 0-1.public static float quinticOut(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float quinticBoth(float t)
t
- Time value between 0-1.public static float bounceIn(float t)
t
- Time value between 0-1.public static float bounceIn(float t, float direction)
direction
parameter is negative, the direction of the function is reversed. This can
be useful for oscillating animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float bounceOut(float t)
t
- Time value between 0-1.public static float bounceOut(float t, float direction)
direction
parameter is
negative, the direction of the function is reversed. This can be useful for oscillating
animations.t
- Time value between 0-1.direction
- Direction of easing, forward if non-negative, or reverse if negative.public static float elasticIn(float t)
t
- Time value between 0-1.public static float elasticOut(float t)
t
- Time value between 0-1.