Changes the value that resembles an oscillating spring until it comes to rest. More...
#include <kanzi/core.ui/animation/easing_curve.hpp>
Public Member Functions | |
ElasticEasingFunction (float oscillations, float springiness) | |
Creates an ElasticEasingFunction with configurable oscillations and springiness. More... | |
ElasticEasingFunction () | |
Creates an ElasticEasingFunction with Oscillations and Springiness set to 3.0. More... | |
float | operator() (float time) const |
Computes value of the easing function for the given time. More... | |
Public Attributes | |
float | oscillations |
float | springiness |
Changes the value that resembles an oscillating spring until it comes to rest.
|
inlineexplicit |
Creates an ElasticEasingFunction with configurable oscillations and springiness.
oscillations | Number of oscillations over the range. |
springiness | Strength of the spring that controls the amplitude of the oscillations. |
|
inline |
Creates an ElasticEasingFunction with Oscillations and Springiness set to 3.0.
|
inline |
Computes value of the easing function for the given time.
time | Normalized time. |
float kanzi::ElasticEasingFunction::oscillations |
float kanzi::ElasticEasingFunction::springiness |