pub struct SpringConfigurable { /* private fields */ }Expand description
§The SpringConfigurable Easing Function.
Spring easing with configurable decay and frequency parameters.
§examples.
use eazy::Curve;
use eazy::oscillatory::spring::SpringConfigurable;
// Stiffer spring with faster decay
let spring = SpringConfigurable::new(8.0, 12.0);
let p = spring.y(0.5);Implementations§
Trait Implementations§
Source§impl Clone for SpringConfigurable
impl Clone for SpringConfigurable
Source§fn clone(&self) -> SpringConfigurable
fn clone(&self) -> SpringConfigurable
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 Curve for SpringConfigurable
impl Curve for SpringConfigurable
Source§impl Debug for SpringConfigurable
impl Debug for SpringConfigurable
impl Copy for SpringConfigurable
Auto Trait Implementations§
impl Freeze for SpringConfigurable
impl RefUnwindSafe for SpringConfigurable
impl Send for SpringConfigurable
impl Sync for SpringConfigurable
impl Unpin for SpringConfigurable
impl UnwindSafe for SpringConfigurable
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