Libraryless. Click here for Pure Java version (9338L/52K).
1 | interface IPixelSet extends HasBounds { |
2 | public bool contains(int x, int y); |
3 | |
4 | default bool contains(Pt p) { ret contains(p.x, p.y); } |
5 | |
6 | default public ItIt<Pt> pixelIterator() { |
7 | ret filterI(main pixelIterator(bounds()), p -> contains(p)); |
8 | } |
9 | } |
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: | 164 / 232 |
Version history: | 2 change(s) |
Referenced in: | [show references] |