lerp method

  1. @useResult
FPersistentSheetStyle lerp(
  1. FPersistentSheetStyle other,
  2. double t
)

Linearly interpolate between this and another FPersistentSheetStyle using the given factor t.

Implementation

@useResult
FPersistentSheetStyle lerp(FPersistentSheetStyle other, double t) => FPersistentSheetStyle(
  motion: motion.lerp(other.motion, t),
  flingVelocity: lerpDouble(flingVelocity, other.flingVelocity, t) ?? flingVelocity,
  closeProgressThreshold:
      lerpDouble(closeProgressThreshold, other.closeProgressThreshold, t) ?? closeProgressThreshold,
);