pub struct CubicBezier {
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
}Expand description
The two control points of a cubic Bézier easing from (0, 0) to (1, 1).
Fields§
§x1: f32First control point X coordinate in 0.0..=1.0.
y1: f32First control point Y coordinate.
x2: f32Second control point X coordinate in 0.0..=1.0.
y2: f32Second control point Y coordinate.
Implementations§
Source§impl CubicBezier
impl CubicBezier
Sourcepub const EASE_IN_OUT: Self
pub const EASE_IN_OUT: Self
Standard CSS ease-in-out curve ((0.42, 0.0, 0.58, 1.0)).
Trait Implementations§
Source§impl Clone for CubicBezier
impl Clone for CubicBezier
impl Copy for CubicBezier
Source§impl Debug for CubicBezier
impl Debug for CubicBezier
Source§impl PartialEq for CubicBezier
impl PartialEq for CubicBezier
impl StructuralPartialEq for CubicBezier
Auto Trait Implementations§
impl Forget for CubicBezier
impl Freeze for CubicBezier
impl Move for CubicBezier
impl RefUnwindSafe for CubicBezier
impl Send for CubicBezier
impl Sync for CubicBezier
impl Unpin for CubicBezier
impl UnsafeUnpin for CubicBezier
impl UnwindSafe for CubicBezier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more