Enum pax_runtime_api::EasingCurve
source · 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 !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