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

8
LINES

< > BotCompany Repo | #1006888 // smallestRectContaining

JavaX fragment (include)

1  
static Rect smallestRectContaining(L<Rect> l, final Pt p) {
2  
  if (p == null) null;
3  
  new Lowest<Rect> b;
4  
  for (Rect r : l)
5  
    if (r.contains(p))
6  
      b.put(r, rectPixels(r));
7  
  ret b.get();
8  
}

Author comment

Began life as a copy of #1006884

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: #1006888
Snippet name: smallestRectContaining
Eternal ID of this version: #1006888/4
Text MD5: af414cfef0017355cc97178606c1be72
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-11 15:55:00
Source code size: 201 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 532
Version history: 3 change(s)
Referenced in: [show references]