logo
pub trait InterpolatedPropertyValue: PartialEq + Default + 'static {
    fn interpolate(&self, target_value: &Self, t: f32) -> Self;
}
Expand description

InterpolatedPropertyValue is a trait used to enable properties to be used with animations that interpolate values. The basic requirement is the ability to apply a progress that’s typically between 0 and 1 to a range.

Required methods

Returns the interpolated value between self and target_value according to the progress parameter t that’s usually between 0 and 1. With certain animation easing curves it may over- or undershoot though.

Implementations on Foreign Types

Implementors