Transpiled version (7936L) is out of date.
1 | sinterface WidthAndHeight { |
2 | int getWidth aka w aka width(); |
3 | int getHeight aka h aka height(); |
4 | |
5 | public default Rect bounds() { ret rect(0, 0, getWidth(), getHeight()); } |
6 | |
7 | default int area() { ret toInt(areaAsLong()); } |
8 | default long areaAsLong() { ret longMul(w(), h()); } |
9 | } |
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: | 274 / 1499 |
Version history: | 5 change(s) |
Referenced in: | [show references] |