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

4
LINES

< > BotCompany Repo | #1009147 // splitRectInVerticalHalves

JavaX fragment (include)

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

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: #1009147
Snippet name: splitRectInVerticalHalves
Eternal ID of this version: #1009147/1
Text MD5: 9682b0ae5c56be9f534ccf0f6ff28b99
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:51:08
Source code size: 141 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 420
Referenced in: [show references]