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

6
LINES

< > BotCompany Repo | #1009853 // calCenterStepwise - center circles a little bit in CirclesAndLines

JavaX fragment (include)

static void calCenterStepwise(CirclesAndLines cal, double speed) {
  DoublePt c = calAverageCenter(cal);
  if (c == null) ret;
  calTranslate(cal, (0.5-c.x)*speed, (0.5-c.y)*speed);
  cal.translate = null;
}

Author comment

Began life as a copy of #1009850

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: #1009853
Snippet name: calCenterStepwise - center circles a little bit in CirclesAndLines
Eternal ID of this version: #1009853/5
Text MD5: f87e932259d24f4133dbda03daa84cef
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-22 21:14:05
Source code size: 212 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 419 / 451
Version history: 4 change(s)
Referenced in: [show references]