#[non_exhaustive]pub enum Easing {
Show 36 variants
Linear,
EaseIn,
EaseOut,
EaseInOut,
SpringCrit {
omega: f32,
},
SpringGentle,
SpringBouncy,
FastOutSlowIn,
Custom(CubicBezier),
CubicIn,
CubicOut,
CubicInOut,
QuartIn,
QuartOut,
QuartInOut,
QuintIn,
QuintOut,
QuintInOut,
SineIn,
SineOut,
SineInOut,
ExpoIn,
ExpoOut,
ExpoInOut,
CircIn,
CircOut,
CircInOut,
BackIn,
BackOut,
BackInOut,
ElasticIn,
ElasticOut,
ElasticInOut,
BounceIn,
BounceOut,
BounceInOut,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Linear
EaseIn
EaseOut
EaseInOut
SpringCrit
Monotonic, critically-damped, y(t)=1-(1+ω t)e^{-ω t}, t∈[0,1].
SpringGentle
Underdamped, low-overshoot preset (ζ≈0.5, ω≈8)
SpringBouncy
Underdamped, bouncier preset (ζ≈0.2, ω≈12)
FastOutSlowIn
Android FastOutSlowIn: cubic-bezier(0.4, 0.0, 0.2, 1.0). Starts fast, decelerates through the middle, ends slow.
Custom(CubicBezier)
Custom cubic-bezier easing with control points (p1x, p1y), (p2x, p2y).
CubicIn
CubicOut
CubicInOut
QuartIn
QuartOut
QuartInOut
QuintIn
QuintOut
QuintInOut
SineIn
SineOut
SineInOut
ExpoIn
ExpoOut
ExpoInOut
CircIn
CircOut
CircInOut
BackIn
Back overshoot preset (Godot default overshoot = 1.70158).
BackOut
BackInOut
ElasticIn
Springy damped oscillation below/above the end value.
ElasticOut
ElasticInOut
BounceIn
BounceOut
BounceInOut
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Easing
impl RefUnwindSafe for Easing
impl Send for Easing
impl Sync for Easing
impl Unpin for Easing
impl UnsafeUnpin for Easing
impl UnwindSafe for Easing
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