Libraryless. Click here for Pure Java version (4752L/26K).
static Rect toRect_round(DoubleRect r) { if (r == null) null; int x = iround(r.x), y = iround(r.y); ret Rect(x, y, iround(r.x2())-x, iround(r.y2())-y); }
Began life as a copy of #1031924
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033765 |
| Snippet name: | toRect_round |
| Eternal ID of this version: | #1033765/1 |
| Text MD5: | 76829b399ef6324d86b51be762f61ea9 |
| Transpilation MD5: | a0b52c64734fb8ce8ac5a6354664a2ac |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-02 06:17:43 |
| Source code size: | 163 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 360 / 457 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |