translate method

Rect2D translate(
  1. Vec2 d
)

Implementation

Rect2D translate(Vec2 d) =>
    Rect2D.fromLTRB(left + d.x, top + d.y, right + d.x, bottom + d.y);