lerp method

Bounds lerp(
  1. Bounds other,
  2. double t
)

Interpolates between this and another bounds.

Implementation

Bounds lerp(Bounds other, double t) {
  return Bounds(
    x: x + (other.x - x) * t,
    y: y + (other.y - y) * t,
    width: width + (other.width - width) * t,
    height: height + (other.height - height) * t,
  );
}