pub struct InOutSmoother;Expand description
The InOutSmoother Curve (standard smootherstep).
Ken Perlin’s smootherstep: 6t⁵ - 15t⁴ + 10t³
Has zero first AND second derivatives at endpoints for extra smoothness. Starts slow, speeds up in the middle, slows down at the end.
§examples.
use eazy::Curve;
use eazy::interpolation::polynomial::smootherstep::InOutSmoother;
let p = InOutSmoother.y(0.5);
assert_eq!(p, 0.5);Trait Implementations§
Source§impl Curve for InOutSmoother
impl Curve for InOutSmoother
Auto Trait Implementations§
impl Freeze for InOutSmoother
impl RefUnwindSafe for InOutSmoother
impl Send for InOutSmoother
impl Sync for InOutSmoother
impl Unpin for InOutSmoother
impl UnwindSafe for InOutSmoother
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