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]

[src]

Create a new Floor Interpolator.

[src]

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]

[src]

Given a distance between [0.0 and 1.0) to the following sample, return the interpolated value. Read more

[src]

Called whenever the Interpolator value steps passed 1.0.