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

6
LINES

< > BotCompany Repo | #1032470 // totalAreaOfDoubleRects

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

Libraryless. Click here for Pure Java version (4101L/23K).

1  
static double totalAreaOfDoubleRects(Iterable<DoubleRect> l) {
2  
  double sum = 0;
3  
  if (l != null) for (DoubleRect r : l)
4  
    sum += area(r);
5  
  ret sum;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032470
Snippet name: totalAreaOfDoubleRects
Eternal ID of this version: #1032470/1
Text MD5: 72135ce90a1af2ba15409052d6d07c5c
Transpilation MD5: 4208c7b8dd9b83b52f96b597da0df472
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-08 06:31:46
Source code size: 158 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 232
Referenced in: [show references]