Enum rust_rocket::interpolation::Interpolation [] [src]

pub enum Interpolation {
    Step,
    Linear,
    Smooth,
    Ramp,
}

The Interpolation Type. This represents the various forms of interpolation that can be performed.

Variants

0

t

t * t * (3 - 2 * t)

t.powi(2)

Methods

impl Interpolation
[src]

This performs the interpolation.

Examples

assert_eq!(Interpolation::Linear.interpolate(0.5), 0.5);
assert_eq!(Interpolation::Step.interpolate(0.5), 0);

Trait Implementations

impl Debug for Interpolation
[src]

Formats the value using the given formatter.

impl Copy for Interpolation
[src]

impl Clone for Interpolation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<u8> for Interpolation
[src]

Performs the conversion.