InterpolatingTransitionBase
trait · ferroui-base · v0.5.0
trait InterpolatingTransitionBase<T: PropertyValue>: Transition<T>
The base for user-defined transitions that are fully described by an interpolation function.
Declare the class with
ferro_transition_class!, implement
this trait and implement Transition::do_transition by calling
interpolating_do_transition.
Members
interpolate
fn interpolate(this: &Self, progress: f64, from: &T, to: &T) -> T
Interpolates between two values using the specified progress.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.