center method

Vec2D center()

Implementation

Vec2D center() {
  return Vec2D.fromValues((left + right) * 0.5, (top + bottom) * 0.5);
}