pub struct CubicBezier {
pub x1: f64,
pub y1: f64,
pub x2: f64,
pub y2: f64,
}Expand description
Parametric Cubic Bézier curve defined by control points (x1, y1) and (x2, y2).
Fields§
§x1: f64§y1: f64§x2: f64§y2: f64Implementations§
Source§impl CubicBezier
impl CubicBezier
Sourcepub const fn new(x1: f64, y1: f64, x2: f64, y2: f64) -> Self
pub const fn new(x1: f64, y1: f64, x2: f64, y2: f64) -> Self
Create a cubic Bézier easing curve.
Sourcepub const fn ease_in_out() -> Self
pub const fn ease_in_out() -> Self
Standard CSS ease-in-out: cubic-bezier(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 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