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.
◆ BezierEasingFunction() [1/2]
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. |
◆ BezierEasingFunction() [2/2]
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).
◆ operator()()
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.
◆ fromValue
float kanzi::BezierEasingFunction::fromValue |
◆ tangentFromTime
float kanzi::BezierEasingFunction::tangentFromTime |
◆ tangentFromValue
float kanzi::BezierEasingFunction::tangentFromValue |
◆ tangentToTime
float kanzi::BezierEasingFunction::tangentToTime |
◆ tangentToValue
float kanzi::BezierEasingFunction::tangentToValue |
◆ toValue
float kanzi::BezierEasingFunction::toValue |
The documentation for this struct was generated from the following file: