Libraryless. Click here for Pure Java version (4969L/28K).
1 | static L<Pt> allPointsInRect_virtual(int w, int h) {
|
2 | ret virtualList(i -> pt(i%w, i/w), w*h); |
3 | } |
4 | |
5 | static L<Pt> allPointsInRect_virtual(int x, int y, int w, int h) {
|
6 | ret virtualList(i -> pt(x+i%w, y+i/w), w*h); |
7 | } |
8 | |
9 | static L<Pt> allPointsInRect_virtual(Rect r) {
|
10 | ret allPointsInRect_virtual(r.x, r.y, r.w, r.h); |
11 | } |
Began life as a copy of #1033584
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033590 |
| Snippet name: | allPointsInRect_virtual |
| Eternal ID of this version: | #1033590/4 |
| Text MD5: | f4ad99a4bc76641380588dcac8591ec6 |
| Transpilation MD5: | 073bd59fe188a21d309433537005c347 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-22 22:42:40 |
| Source code size: | 325 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 376 / 495 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |