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

5
LINES

< > BotCompany Repo | #1030539 // squaresAroundCircle

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

Libraryless. Click here for Pure Java version (3026L/18K).

// points are oriented clockwise, starting at top
static L<Rect> squaresAroundCircle(Pt center, int n, double radius, int squareSize) {
  ret map(pointsAroundCircle(center, n, radius),
    p -> rectAround(p, squareSize/2));
}

Author comment

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: 192 / 277
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)