Struct storm::math::Interpolation
source · [−]pub struct Interpolation { /* private fields */ }
Expand description
Provides functions for interpolating between two f32s.
Implementations
sourceimpl Interpolation
impl Interpolation
sourcepub fn new(start: f32, end: f32) -> Interpolation
pub fn new(start: f32, end: f32) -> Interpolation
Creates a new interpolation between start and end, starting with a progress of 0.0.
sourcepub fn set(&mut self, start: f32, end: f32)
pub fn set(&mut self, start: f32, end: f32)
Sets the start and end of the interpolation, restarting progress.
Auto Trait Implementations
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnwindSafe for Interpolation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more