Struct easing_function::easings::EaseInOutQuadradic
source · pub struct EaseInOutQuadradic;
Expand description
An Easing
function that eases
in and out using a quadradic (x^2) curve
See https://easings.net/#easeInOutQuad for a visualization and more information.
Implementations§
source§impl EaseInOutQuadradic
impl EaseInOutQuadradic
sourcepub fn ease(progress: f32) -> f32
pub fn ease(progress: f32) -> f32
Eases in and out using a quadradic (x^2) curve
See https://easings.net/#easeInOutQuad for a visualization and more information.
Trait Implementations§
source§impl Clone for EaseInOutQuadradic
impl Clone for EaseInOutQuadradic
source§fn clone(&self) -> EaseInOutQuadradic
fn clone(&self) -> EaseInOutQuadradic
Returns a copy 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 EaseInOutQuadradic
impl Debug for EaseInOutQuadradic
source§impl Easing for EaseInOutQuadradic
impl Easing for EaseInOutQuadradic
source§impl From<EaseInOutQuadradic> for EasingFunction
impl From<EaseInOutQuadradic> for EasingFunction
source§fn from(_function: EaseInOutQuadradic) -> Self
fn from(_function: EaseInOutQuadradic) -> Self
Converts to this type from the input type.
impl Copy for EaseInOutQuadradic
Auto Trait Implementations§
impl Freeze for EaseInOutQuadradic
impl RefUnwindSafe for EaseInOutQuadradic
impl Send for EaseInOutQuadradic
impl Sync for EaseInOutQuadradic
impl Unpin for EaseInOutQuadradic
impl UnwindSafe for EaseInOutQuadradic
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)