lerp method

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

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

Implementation

@useResult
FPortalArrowStyle lerp(FPortalArrowStyle other, double t) => .new(
  cornerSpacing: lerpDouble(cornerSpacing, other.cornerSpacing, t) ?? cornerSpacing,
  baseRadius: lerpDouble(baseRadius, other.baseRadius, t) ?? baseRadius,
  width: lerpDouble(width, other.width, t) ?? width,
  height: lerpDouble(height, other.height, t) ?? height,
  tipRadius: lerpDouble(tipRadius, other.tipRadius, t) ?? tipRadius,
);