Libraryless. Click here for Pure Java version (4752L/26K).
1 | static Rect toRect_round(DoubleRect r) { |
2 | if (r == null) null; |
3 | int x = iround(r.x), y = iround(r.y); |
4 | ret Rect(x, y, iround(r.x2())-x, iround(r.y2())-y); |
5 | } |
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: | 138 / 192 |
Referenced in: | [show references] |