Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1035986 // G22MaskSize

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (22623L) is out of date.

concept G22MaskSize is WidthAndHeight {
  int width = g22defaultMaskSideLength(), height = g22defaultMaskSideLength();
  
  public int getWidth() { ret width; }
  public int getHeight() { ret height; }
  
  *() {}
  *(int widthHeight) {
    width = height = widthHeight;
  }
  
  bool square() { ret width == height; }
  
  toString {
    ret spaceCombine("Mask Size",
      square()
        ? width + "²"
        : width + "*" + height); }
}

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: 84 / 126
Version history: 5 change(s)
Referenced in: [show references]