Libraryless. Click here for Pure Java version (2925L/17K).
1 | static Rect rect(int x, int y, int w, int h) {
|
2 | ret Rect(x, y, w, h); |
3 | } |
4 | |
5 | static Rect rect(Pt p, int w, int h) {
|
6 | ret Rect(p.x, p.y, w, h); |
7 | } |
8 | |
9 | static Rect rect(int w, int h) {
|
10 | ret Rect(0, 0, w, h); |
11 | } |
12 | |
13 | ifclass BWImageAndRect |
14 | static Rect rect(BWImageAndRect r) { ret r == null ? null : r.rect; }
|
15 | endif |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1009130 |
| Snippet name: | rect |
| Eternal ID of this version: | #1009130/4 |
| Text MD5: | bbb32d7e79bf5d43ca9901e1041abcfb |
| Transpilation MD5: | 042a181b0b15d356bb624c6042f98520 |
| Author: | stefan |
| Category: | javax / maths |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-05-07 16:46:43 |
| Source code size: | 316 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1164 / 1377 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |