Changes the value with an exponential function with power that you can configure. More...
#include <kanzi/core.ui/animation/easing_curve.hpp>
Public Member Functions | |
ExponentialEasingFunction () | |
Creates an ExponentialEasingFunction with a default exponent of 2.0. | |
ExponentialEasingFunction (float exponent) | |
Creates an ExponentialEasingFunction with a configurable exponent. | |
float | operator() (float time) const |
Computes value of the easing function for the given time. | |
Public Attributes | |
float | exponent |
Changes the value with an exponential function with power that you can configure.
|
inlineexplicit |
Creates an ExponentialEasingFunction with a configurable exponent.
exponent | The exponent used for the exponential function. |
|
inline |
Creates an ExponentialEasingFunction with a default exponent of 2.0.
Computes value of the easing function for the given time.
time | Normalized time. |
float kanzi::ExponentialEasingFunction::exponent |