Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1006130 // mergeRects

JavaX fragment (include)

static Rect mergeRects(L<Rect> l) {
  Rect r = first(l);
  for (int i = 1; i < l(l); i++)
    r = rectUnion(r, l.get(i));
  ret r;
}

static Rect mergeRects(Rect a, Rect b) {
  ret rectUnion(a, b);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006130
Snippet name: mergeRects
Eternal ID of this version: #1006130/1
Text MD5: 1a746c60d20e70eed61eeed7fc0dc93b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-28 22:58:36
Source code size: 208 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 595 / 617
Referenced in: [show references]