pub trait CanTween {
fn ease(from: Self, to: Self, time: impl Float) -> Self;
}
Expand description
Type that can be used with an easing function
Returns the interpolated value between from
and to
at the specified time.
This function will always create a new value, so calling it on very large structures is not a good idea.