1 | static Rect growRectTopAndLeft(Rect r, int pixels default 1) { |
2 | ret new Rect(r.x-pixels, r.y-pixels, r.w+pixels, r.h+pixels); |
3 | } |
Began life as a copy of #1006823
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033814 |
Snippet name: | growRectTopAndLeft |
Eternal ID of this version: | #1033814/1 |
Text MD5: | f70060e308fd0e0ba980abebc6d2560f |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-05 06:15:37 |
Source code size: | 130 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 141 / 165 |
Referenced in: | [show references] |