Struct sample::interpolate::Floor
[−]
[src]
pub struct Floor<F> { /* fields omitted */ }
Interpolator that just rounds off any values to the previous value from the source
Methods
impl<F> Floor<F>
[src]
fn new(left: F) -> Floor<F>
[src]
Create a new Floor Interpolator.
fn from_source<S>(source: &mut S) -> Floor<F> where
F: Frame,
S: Signal<Frame = F>,
[src]
F: Frame,
S: Signal<Frame = F>,
Consumes the first value from a given source in order to initialize itself. If the source has no values at all, this will return None.
Trait Implementations
impl<F> Interpolator for Floor<F> where
F: Frame,
F::Sample: Duplex<f64>,
[src]
F: Frame,
F::Sample: Duplex<f64>,
type Frame = F
fn interpolate(&self, _x: f64) -> Self::Frame
[src]
Given a distance between [0.0 and 1.0) to the following sample, return the interpolated value. Read more
fn next_source_frame(&mut self, source_frame: Self::Frame)
[src]
Called whenever the Interpolator value steps passed 1.0.