lerp method

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

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

Implementation

@useResult
FPopoverMenuMotion lerp(FPopoverMenuMotion other, double t) => .new(
  fade: lerpDouble(fade, other.fade, t) ?? fade,
  fadeDuration: t < 0.5 ? fadeDuration : other.fadeDuration,
  fadeCurve: t < 0.5 ? fadeCurve : other.fadeCurve,
);