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