Trait libre_pvz_animation::curve::animatable::Animatable
source · pub trait Animatable {
// Required method
fn interpolate(a: &Self, b: &Self, time: f32) -> Self;
}
Expand description
Animatable types can be interpolated with f32
s.
Required Methods§
sourcefn interpolate(a: &Self, b: &Self, time: f32) -> Self
fn interpolate(a: &Self, b: &Self, time: f32) -> Self
Typically a * (1 - time) + b * time
.
Object Safety§
This trait is not object safe.