@FunctionalInterface public interface EasingFunction
See easings.net for examples. See also Understanding Easing (Explaining Penner’s equations).
Implemented as a functional interface so that implementations can use method references rather than inheritance, makes it easier to refer to ease in, ease out and ease in-out variants.
Modifier and Type | Method and Description |
---|---|
float |
ease(float t,
float b,
float c,
float d) |
float ease(float t, float b, float c, float d)
t
- (time) is the current time (or position) of the tween. This
can be seconds or frames, steps, seconds, ms, whatever – as
long as the unit is the same as is used for the total time
[3].b
- (begin) is the beginning value of the property.c
- (change) is the change between the beginning and destination
value of the property.d
- (duration) is the total time of the tween.Copyright © 2016–2017 mattjlewis. All rights reserved.