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

24
LINES

< > BotCompany Repo | #1026939 // BWContrastQuadTree

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

Libraryless. Click here for Pure Java version (58L/1K).

1  
sclass BWContrastQuadTree {
2  
  byte min, max;
3  
  
4  
  *() {}
5  
  *(int val) { min = max = (byte) val; }
6  
  *(int min, int max) {
7  
    this.min = (byte) min;
8  
    this.max = (byte) max;
9  
  }
10  
  
11  
  int min() { ret ubyteToInt(min); }
12  
  int max() { ret ubyteToInt(max); }
13  
  
14  
  sclass Composite > BWContrastQuadTree {
15  
    BWContrastQuadTree a, b, c, d;
16  
    
17  
    *() {}
18  
    *(int min, int max, BWContrastQuadTree *a, BWContrastQuadTree *b,
19  
      BWContrastQuadTree *c, BWContrastQuadTree *d) {
20  
      this.min = (byte) min;
21  
      this.max = (byte) max;
22  
    }
23  
  }
24  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026939
Snippet name: BWContrastQuadTree
Eternal ID of this version: #1026939/7
Text MD5: 22914d32182e28bb04216570fb68a16a
Transpilation MD5: c7d362f67f42451bfe81d250d1f2b422
Author: stefan
Category: javax /
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-03 03:32:14
Source code size: 569 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 517
Version history: 6 change(s)
Referenced in: [show references]