pub enum Interpolation {
Show 20 variants
None,
Linear,
InSmooth,
OutSmooth,
InOutSmooth,
InSmoother,
OutSmoother,
InOutSmoother,
Quartic,
InvQuartic,
InRationalCubic,
InRationalQuadratic,
OutRationalCubic,
OutRationalQuadratic,
InPiecewizePolynomial,
InPiecewizeQuadratic,
OutPiecewizePolynomial,
OutPiecewizeQuadratic,
Sinusoidal,
InvSinusoidal,
}Expand description
§The Interpolation Function User Access.
Wraps all interpolation functions in one place.
§examples.
use eazy::interpolation::Interpolation;
use eazy::Curve;
let p = Interpolation::InOutSmooth.y(0.5);
assert_eq!(p, 0.5);Variants§
None
Linear
InSmooth
OutSmooth
InOutSmooth
InSmoother
OutSmoother
InOutSmoother
Quartic
InvQuartic
InRationalCubic
InRationalQuadratic
OutRationalCubic
OutRationalQuadratic
InPiecewizePolynomial
InPiecewizeQuadratic
OutPiecewizePolynomial
OutPiecewizeQuadratic
Sinusoidal
InvSinusoidal
Trait Implementations§
Source§impl Clone for Interpolation
impl Clone for Interpolation
Source§fn clone(&self) -> Interpolation
fn clone(&self) -> Interpolation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Curve for Interpolation
impl Curve for Interpolation
Auto Trait Implementations§
impl Freeze for Interpolation
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnwindSafe for Interpolation
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