Transpiled version (3347L) is out of date.
1 | static Rect growRect(int pixels, Rect r) { |
2 | ret growRect(r, pixels); |
3 | } |
4 | |
5 | static Rect growRect(double x, double y default x, Rect r) { |
6 | ret growRect(r, x, y); |
7 | } |
8 | |
9 | static Rect growRect(Rect r, int pixels default 1) { |
10 | ret new Rect(r.x-pixels, r.y-pixels, r.w+pixels*2, r.h+pixels*2); |
11 | } |
12 | |
13 | static Rect growRect(Rect r, int x, int y) { |
14 | ret new Rect(r.x-x, r.y-y, r.w+x*2, r.h+y*2); |
15 | } |
16 | |
17 | static Rect growRect(Rect r, double x, double y default x) { |
18 | ret new Rect(iround(r.x-x), iround(r.y-y), r.w+iround(x*2), r.h+iround(y*2)); |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006163 |
Snippet name: | growRect |
Eternal ID of this version: | #1006163/8 |
Text MD5: | 2bede63d28c1b8a7306b92c928eabc2e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-15 17:51:02 |
Source code size: | 544 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 581 / 683 |
Version history: | 7 change(s) |
Referenced in: | [show references] |