pub struct Quartic;Expand description
Quartic Smoothstep: x²(2-x²)
C1 continuous smoothstep using only even powers.
§examples.
use eazy::Curve;
use eazy::interpolation::polynomial::quartic::Quartic;
let p = Quartic.y(0.5);
assert!((p - 0.4375).abs() < 0.0001);Trait Implementations§
Auto Trait Implementations§
impl Freeze for Quartic
impl RefUnwindSafe for Quartic
impl Send for Quartic
impl Sync for Quartic
impl Unpin for Quartic
impl UnwindSafe for Quartic
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