static Pair<Rect> splitRectInHorizontalHalves(Rect r) { int w = r.w/2; ret pair(rect(r.x, r.y, w, r.h), rect(r.x+w, r.y, r.w-w, r.h)); }
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: | 712 / 765 |
| Referenced in: | [show references] |