CubicBezierEasingFunction
struct · ferroui-base · v0.5.0
struct CubicBezierEasingFunction
A cubic Bezier curve from (0, 0) to (1, 1) with two control points
(WinUI CubicBezierEasingFunction); the curve of
SplineEasing.
Members
new
fn new(control_point1: Vector2, control_point2: Vector2) -> CubicBezierEasingFunction
Creates the curve. Panics when the X coordinate of a control point is
outside [0, 1] (WinUI throws).
control_point1
fn control_point1(self: &Self) -> Vector2
The first control point.
control_point2
fn control_point2(self: &Self) -> Vector2
The second control point.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIEasingFrom<CubicBezierEasingFunction>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.