#[repr(C)]pub struct BezierEasing {
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
}Expand description
Cubic Bezier easing with two control points.
The curve starts at (0, 0) and ends at (1, 1). The control points
(x1, y1) and (x2, y2) shape the curve between those endpoints.
Fields§
§x1: f32X coordinate of the first control point.
y1: f32Y coordinate of the first control point.
x2: f32X coordinate of the second control point.
y2: f32Y coordinate of the second control point.
Implementations§
Trait Implementations§
Source§impl Clone for BezierEasing
impl Clone for BezierEasing
Source§fn clone(&self) -> BezierEasing
fn clone(&self) -> BezierEasing
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BezierEasing
impl Debug for BezierEasing
Source§impl PartialEq for BezierEasing
impl PartialEq for BezierEasing
impl Copy for BezierEasing
impl StructuralPartialEq for BezierEasing
Auto Trait Implementations§
impl Freeze for BezierEasing
impl RefUnwindSafe for BezierEasing
impl Send for BezierEasing
impl Sync for BezierEasing
impl Unpin for BezierEasing
impl UnsafeUnpin for BezierEasing
impl UnwindSafe for BezierEasing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more