static Pt rectsMaxBottomRight(L<Rect> rects) { int x = 0, y = 0; for (Rect r : rects) { x = max(x, r.x2()); y = max(y, r.y2()); } ret new Pt(x, y); }
Began life as a copy of #1007270
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008957 |
Snippet name: | rectsMaxBottomRight |
Eternal ID of this version: | #1008957/2 |
Text MD5: | 4eda69b6949942da0956fc5d3c6f5980 |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-20 01:13:21 |
Source code size: | 172 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 559 / 583 |
Version history: | 1 change(s) |
Referenced in: | [show references] |