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

4
LINES

< > BotCompany Repo | #1009149 // splitRectInHorizontalHalves

JavaX fragment (include)

1  
static Pair<Rect> splitRectInHorizontalHalves(Rect r) {
2  
  int w = r.w/2;
3  
  ret pair(rect(r.x, r.y, w, r.h), rect(r.x+w, r.y, r.w-w, r.h));
4  
}

Author comment

Began life as a copy of #1009147

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: #1009149
Snippet name: splitRectInHorizontalHalves
Eternal ID of this version: #1009149/1
Text MD5: 25ea08a034c0a400f6ad483781536dec
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-05 23:55:09
Source code size: 143 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 499 / 539
Referenced in: [show references]