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

11
LINES

< > BotCompany Repo | #1015177 // smallestRectAndMD5Containing

JavaX fragment (include)

1  
static RectAndMD5 smallestRectAndMD5Containing(L<RectAndMD5> l, int x, int y) {
2  
  new Lowest<RectAndMD5> b;
3  
  for (RectAndMD5 r : unnull(l))
4  
    if (r.r.contains(x, y))
5  
      b.put(r, rectPixels(r.r));
6  
  ret b!;
7  
}
8  
9  
static RectAndMD5 smallestRectAndMD5Containing(L<RectAndMD5> l, Pt p) {
10  
  ret smallestRectAndMD5Containing(l, p.x, p.y);
11  
}

Author comment

Began life as a copy of #1015129

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: #1015177
Snippet name: smallestRectAndMD5Containing
Eternal ID of this version: #1015177/4
Text MD5: fc1628618e29e261cfdec1b78bce7813
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-10 15:36:37
Source code size: 347 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 395 / 433
Version history: 3 change(s)
Referenced in: [show references]