code: public static void union (IRectangle src1, IRectangle src2, Rectangle dst) {
          float x1 = Math.min(src1.minX(), src2.minX());
          float y1 = Math.min(src1.minY(), src2.minY());
          float x2 = Math.max(src1.maxX(), src2.maxX());
          float y2 = Math.max(src1.maxY(), src2.maxY());
          dst.setBounds(x1, y1, x2 - x1, y2 - y1);
      }
docs: Unions the supplied two rectangles, writing the result into {@code dst}.