Libraryless. Click here for Pure Java version (3026L/18K).
1 | // points are oriented clockwise, starting at top |
2 | static L<Rect> squaresAroundCircle(Pt center, int n, double radius, int squareSize) { |
3 | ret map(pointsAroundCircle(center, n, radius), |
4 | p -> rectAround(p, squareSize/2)); |
5 | } |
Began life as a copy of #1030538
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030539 |
Snippet name: | squaresAroundCircle |
Eternal ID of this version: | #1030539/1 |
Text MD5: | e840111feb2a88c9c8cf52c2c7f89bfb |
Transpilation MD5: | 56e0dfcfae3946174541dd2a901f234d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-01-06 19:26:11 |
Source code size: | 229 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 276 |
Referenced in: | [show references] |