pub struct Interpolation { /* private fields */ }
Expand description

Provides functions for interpolating between two f32s.

Implementations

Creates a new interpolation between start and end, starting with a progress of 0.0.

Gets the set start value.

Gets the set end value.

Gets the current progress.

Computes the current value of the interpolation.

Sets the start and end of the interpolation, restarting progress.

Updates the end of the interpolation, continuing from the current value, and restarting progress.

Adds the given delta to the progress of the interpolation. Progress is tracked as a value between [0, 1]

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.