lerpTo method

  1. @override
RoundedCorner lerpTo(
  1. AnyCorner other,
  2. double t
)
override

Implementation

@override
RoundedCorner lerpTo(AnyCorner other, double t) {
  if (other is! RoundedCorner) {
    throw 'Not the same runtime type: ${other.runtimeType}';
  }

  return RoundedCorner.elliptical(
    p: lerpDouble(p, other.p, t)!,
    n: lerpDouble(n, other.n, t)!,
    converter: AnyUtils.pickLerp(converter, other.converter, t),
  );
}