pub struct InSmoother;Expand description
The InSmoother Curve (ease-in).
Derived from smootherstep InOut by taking the first half and stretching:
In(t) = 2 * InOut(t/2) = t³ * (3t² - 15t + 20) / 8
Starts slow, accelerates toward the end.
§examples.
use eazy::Curve;
use eazy::interpolation::polynomial::smootherstep::InSmoother;
let p = InSmoother.y(0.5);
assert!((p - 0.20703125).abs() < 0.0001);Trait Implementations§
Source§impl Curve for InSmoother
impl Curve for InSmoother
Auto Trait Implementations§
impl Freeze for InSmoother
impl RefUnwindSafe for InSmoother
impl Send for InSmoother
impl Sync for InSmoother
impl Unpin for InSmoother
impl UnwindSafe for InSmoother
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