Changes the value according to a Bezier curve. More...
#include <kanzi/core.ui/animation/easing_curve_shared.hpp>
Public Member Functions | |
| BezierEasingFunction () | |
| Constructs a default BezierEasingFunction. | |
| BezierEasingFunction (float fromValue, float tangentFromTime, float tangentFromValue, float tangentToTime, float tangentToValue, float toValue) | |
| Constructs a BezierEasingFunction with the given parameters. | |
| float | operator() (float time) const |
| Computes the value of a Bezier easing function for the given time. | |
Public Attributes | |
| float | fromValue |
| float | tangentFromTime |
| float | tangentFromValue |
| float | tangentToTime |
| float | tangentToValue |
| float | toValue |
Changes the value according to a Bezier curve.
|
inlineexplicit |
Constructs a BezierEasingFunction with the given parameters.
| fromValue | Starting point of the Bezier curve. |
| tangentFromTime | Time component of the first control point. |
| tangentFromValue | Value component of the first control point. |
| tangentToTime | Time component of the second control point. |
| tangentToValue | Value component of the second control point. |
| toValue | Ending point of the Bezier curve. |
|
inlineexplicit |
Constructs a default BezierEasingFunction.
The default curve is from 0.0 - 1.0, with control points of (0.5, 0.0) and (0.5, 1.0).
Computes the value of a Bezier easing function for the given time.
| time | Normalized time. |
| float kanzi::BezierEasingFunction::fromValue |
| float kanzi::BezierEasingFunction::tangentFromTime |
| float kanzi::BezierEasingFunction::tangentFromValue |
| float kanzi::BezierEasingFunction::tangentToTime |
| float kanzi::BezierEasingFunction::tangentToValue |
| float kanzi::BezierEasingFunction::toValue |