pub struct CubicBezier {
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
}Expand description
CSS-style cubic Bézier easing with control points (x1, y1), (x2, y2);
the end points are fixed at (0, 0) and (1, 1).
Fields§
§x1: f64First control point, x (0..=1).
y1: f64First control point, y.
x2: f64Second control point, x (0..=1).
y2: f64Second control point, y.
Implementations§
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 Ease for CubicBezier
impl Ease for CubicBezier
Source§impl PartialEq for CubicBezier
impl PartialEq for CubicBezier
impl StructuralPartialEq for CubicBezier
Auto Trait Implementations§
impl Freeze 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