Transpiled version (22623L) is out of date.
1 | concept G22MaskSize is WidthAndHeight {
|
2 | int width = g22defaultMaskSideLength(), height = g22defaultMaskSideLength(); |
3 | |
4 | public int getWidth() { ret width; }
|
5 | public int getHeight() { ret height; }
|
6 | |
7 | *() {}
|
8 | *(int widthHeight) {
|
9 | width = height = widthHeight; |
10 | } |
11 | |
12 | bool square() { ret width == height; }
|
13 | |
14 | toString {
|
15 | ret spaceCombine("Mask Size",
|
16 | square() |
17 | ? width + "²" |
18 | : width + "*" + height); } |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035986 |
| Snippet name: | G22MaskSize |
| Eternal ID of this version: | #1035986/6 |
| Text MD5: | 37f748f396fc53be00b6cc8211cc1cc4 |
| Author: | stefan |
| Category: | javax / gazelle 22 |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-09-15 19:45:39 |
| Source code size: | 461 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 598 / 701 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |