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

9
LINES

< > BotCompany Repo | #1035884 // IPixelSet

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

Libraryless. Click here for Pure Java version (9338L/52K).

interface IPixelSet extends HasBounds {
  public bool contains(int x, int y);
  
  default bool contains(Pt p) { ret contains(p.x, p.y); }
  
  default public ItIt<Pt> pixelIterator() {
    ret filterI(main pixelIterator(bounds()), p -> contains(p));
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035884
Snippet name: IPixelSet
Eternal ID of this version: #1035884/3
Text MD5: f6f31da57d276831c01c5d62130ed72b
Transpilation MD5: 9a47869cd2a550e0f25537fc9ecba4b1
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-06 23:25:32
Source code size: 264 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 162 / 228
Version history: 2 change(s)
Referenced in: [show references]