|
Gin
|
Collection of easing functions for animation and interpolation. More...
Functions | |
| template<class T > | |
| T | easeLinear (T p) |
| Linear interpolation with no easing. | |
| template<class T > | |
| T | easeQuadraticIn (T p) |
| Quadratic easing in - accelerating from zero velocity. | |
| template<class T > | |
| T | easeQuadraticOut (T p) |
| Quadratic easing out - decelerating to zero velocity. | |
| template<class T > | |
| T | easeQuadraticInOut (T p) |
| Quadratic easing in/out - acceleration until halfway, then deceleration. | |
| template<class T > | |
| T | easeCubicIn (T p) |
| Cubic easing in - accelerating from zero velocity. | |
| template<class T > | |
| T | easeCubicOut (T p) |
| Cubic easing out - decelerating to zero velocity. | |
| template<class T > | |
| T | easeCubicInOut (T p) |
| Cubic easing in/out - acceleration until halfway, then deceleration. | |
| template<class T > | |
| T | easeQuarticIn (T p) |
| Quartic easing in - accelerating from zero velocity. | |
| template<class T > | |
| T | easeQuarticOut (T p) |
| Quartic easing out - decelerating to zero velocity. | |
| template<class T > | |
| T | easeQuarticInOut (T p) |
| Quartic easing in/out - acceleration until halfway, then deceleration. | |
| template<class T > | |
| T | easeQuinticIn (T p) |
| Quintic easing in - accelerating from zero velocity. | |
| template<class T > | |
| T | easeQuinticOut (T p) |
| Quintic easing out - decelerating to zero velocity. | |
| template<class T > | |
| T | easeQuinticInOut (T p) |
| Quintic easing in/out - acceleration until halfway, then deceleration. | |
| template<class T > | |
| T | easeSineIn (T p) |
| Sine easing in - accelerating from zero velocity. | |
| template<class T > | |
| T | easeSineOut (T p) |
| Sine easing out - decelerating to zero velocity. | |
| template<class T > | |
| T | easeSineInOut (T p) |
| Sine easing in/out - acceleration until halfway, then deceleration. | |
| template<class T > | |
| T | easeCircularIn (T p) |
| Circular easing in - accelerating from zero velocity. | |
| template<class T > | |
| T | easeCircularOut (T p) |
| Circular easing out - decelerating to zero velocity. | |
| template<class T > | |
| T | easeCircularInOut (T p) |
| Circular easing in/out - acceleration until halfway, then deceleration. | |
| template<class T > | |
| T | easeExponentialIn (T p) |
| Exponential easing in - accelerating from zero velocity. | |
| template<class T > | |
| T | easeExponentialOut (T p) |
| Exponential easing out - decelerating to zero velocity. | |
| template<class T > | |
| T | easeExponentialInOut (T p) |
| Exponential easing in/out - acceleration until halfway, then deceleration. | |
| template<class T > | |
| T | easeElasticIn (T p) |
| Elastic easing in - accelerating with oscillation. | |
| template<class T > | |
| T | easeElasticOut (T p) |
| Elastic easing out - decelerating with oscillation. | |
| template<class T > | |
| T | easeElasticInOut (T p) |
| Elastic easing in/out - acceleration and deceleration with oscillation. | |
| template<class T > | |
| T | easeBackIn (T p) |
| Back easing in - accelerating with slight overshoot. | |
| template<class T > | |
| T | easeBackOut (T p) |
| Back easing out - decelerating with overshoot. | |
| template<class T > | |
| T | easeBackInOut (T p) |
| Back easing in/out - acceleration and deceleration with overshoot. | |
| template<class T > | |
| T | easeBounceOut (T p) |
| Bounce easing out - decelerating with bounce effect. | |
| template<class T > | |
| T | easeBounceIn (T p) |
| Bounce easing in - accelerating with bounce effect. | |
| template<class T > | |
| T | easeBounceInOut (T p) |
| Bounce easing in/out - bouncing at both ends. | |
Collection of easing functions for animation and interpolation.
Easing functions provide smooth transitions between values, commonly used in animations, UI transitions, and parameter smoothing. All functions take a normalized input value [0, 1] and return a normalized output [0, 1].
Function naming convention:
Available easing types:
Example:
Based on AHEasing by Auerhaus Development, LLC