Transpiled version (7936L) is out of date.
sinterface WidthAndHeight { int getWidth aka w aka width(); int getHeight aka h aka height(); public default Rect bounds() { ret rect(0, 0, getWidth(), getHeight()); } default int area() { ret toInt(areaAsLong()); } default long areaAsLong() { ret longMul(w(), h()); } }
Began life as a copy of #1015472
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031287 |
| Snippet name: | WidthAndHeight |
| Eternal ID of this version: | #1031287/6 |
| Text MD5: | 27e6669b5f1d2529186b32935a0bf7b3 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-06-26 22:04:01 |
| Source code size: | 294 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 684 / 1970 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |