1 | static Pt rectsMaxBottomRight(L<Rect> rects) {
|
2 | int x = 0, y = 0; |
3 | for (Rect r : rects) {
|
4 | x = max(x, r.x2()); |
5 | y = max(y, r.y2()); |
6 | } |
7 | ret new Pt(x, y); |
8 | } |
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: | 780 / 829 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |