pub struct InOutSmooth;Expand description
The InOutSmooth Curve (standard smoothstep).
The classic smoothstep S-curve: 3t² - 2t³
Starts slow, speeds up in the middle, slows down at the end.
§examples.
use eazy::Curve;
use eazy::interpolation::polynomial::smoothstep::InOutSmooth;
let p = InOutSmooth.y(0.5);
assert_eq!(p, 0.5);Trait Implementations§
Source§impl Curve for InOutSmooth
impl Curve for InOutSmooth
Auto Trait Implementations§
impl Freeze for InOutSmooth
impl RefUnwindSafe for InOutSmooth
impl Send for InOutSmooth
impl Sync for InOutSmooth
impl Unpin for InOutSmooth
impl UnwindSafe for InOutSmooth
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