Changes the value according to a Bezier curve.
More...
#include <kanzi/core.ui/animation/easing_curve_shared.hpp>
Changes the value according to a Bezier curve.
| kanzi::BezierEasingFunction::BezierEasingFunction |
( |
float |
fromValue, |
|
|
float |
tangentFromTime, |
|
|
float |
tangentFromValue, |
|
|
float |
tangentToTime, |
|
|
float |
tangentToValue, |
|
|
float |
toValue |
|
) |
| |
|
inlineexplicit |
Constructs a BezierEasingFunction with the given parameters.
- 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. |
| kanzi::BezierEasingFunction::BezierEasingFunction |
( |
| ) |
|
|
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).
| float kanzi::BezierEasingFunction::operator() |
( |
float |
time | ) |
const |
|
inline |
Computes the value of a Bezier easing function for the given time.
- Parameters
-
- Returns
- Result of the easing function.
| float kanzi::BezierEasingFunction::fromValue |
| float kanzi::BezierEasingFunction::tangentFromTime |
| float kanzi::BezierEasingFunction::tangentFromValue |
| float kanzi::BezierEasingFunction::tangentToTime |
| float kanzi::BezierEasingFunction::tangentToValue |
| float kanzi::BezierEasingFunction::toValue |
The documentation for this struct was generated from the following file: