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

5
LINES

< > BotCompany Repo | #1009850 // calCenter - center circles in CirclesAndLines

JavaX fragment (include)

1  
static void calCenter(CirclesAndLines cal) {
2  
  DoublePt c = calAverageCenter(cal);
3  
  if (c == null) ret;
4  
  calTranslate(cal, 0.5-c.x, 0.5-c.y);
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009850
Snippet name: calCenter - center circles in CirclesAndLines
Eternal ID of this version: #1009850/2
Text MD5: 28e6c3633b19704d1097a362b888b891
Author: stefan
Category: javax / a.i. / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-21 22:32:34
Source code size: 149 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 550 / 558
Version history: 1 change(s)
Referenced in: [show references]