lerp method
Linearly interpolate between this and another FPersistentSheetMotion using the given factor t
.
Implementation
@useResult
FPersistentSheetMotion lerp(FPersistentSheetMotion other, double t) => FPersistentSheetMotion(
expandDuration: t < 0.5 ? expandDuration : other.expandDuration,
collapseDuration: t < 0.5 ? collapseDuration : other.collapseDuration,
curve: t < 0.5 ? curve : other.curve,
);