Libraryless. Click here for Pure Java version (3271L/18K).
static Rect toRect_floor(DoubleRect r) { if (r == null) null; int x = ifloor(r.x), y = ifloor(r.y); ret Rect(x, y, ifloor(r.x2())-x, ifloor(r.y2())-y); }
Began life as a copy of #1009810
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031924 |
Snippet name: | toRect_floor |
Eternal ID of this version: | #1031924/1 |
Text MD5: | e870fb9f02c9898dbc65c146e8db179c |
Transpilation MD5: | 907d170571348f82ab3a0c1240e49077 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-02 04:17:24 |
Source code size: | 163 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 161 / 227 |
Referenced in: | [show references] |