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).

sclass BWContrastQuadTree {
  byte min, max;
  
  *() {}
  *(int val) { min = max = (byte) val; }
  *(int min, int max) {
    this.min = (byte) min;
    this.max = (byte) max;
  }
  
  int min() { ret ubyteToInt(min); }
  int max() { ret ubyteToInt(max); }
  
  sclass Composite > BWContrastQuadTree {
    BWContrastQuadTree a, b, c, d;
    
    *() {}
    *(int min, int max, BWContrastQuadTree *a, BWContrastQuadTree *b,
      BWContrastQuadTree *c, BWContrastQuadTree *d) {
      this.min = (byte) min;
      this.max = (byte) max;
    }
  }
}

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: 264 / 615
Version history: 6 change(s)
Referenced in: #1033638 - QuadTreeBitMatrix
#1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)