pub trait CanTween {
    fn ease(from: Self, to: Self, time: impl Float) -> Self;
}
Expand description

Type that can be used with an easing function

Required Methods

Returns the interpolated value between from and to at the specified time.

Note

This function will always create a new value, so calling it on very large structures is not a good idea.

Implementations on Foreign Types

Implementors