pub enum EasingCurve {
Linear,
InQuad,
OutQuad,
InBack,
OutBack,
InOutBack,
Custom(Box<dyn Fn(f64) -> f64>),
}
Variants§
Implementations§
Source§impl EasingCurve
impl EasingCurve
pub fn interpolate<T: Interpolatable>(&self, v0: &T, v1: &T, t: f64) -> T
Auto Trait Implementations§
impl Freeze for EasingCurve
impl !RefUnwindSafe for EasingCurve
impl !Send for EasingCurve
impl !Sync for EasingCurve
impl Unpin for EasingCurve
impl !UnwindSafe for EasingCurve
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.