1 | static void calCenterStepwise(CirclesAndLines cal, double speed) {
|
2 | DoublePt c = calAverageCenter(cal); |
3 | if (c == null) ret; |
4 | calTranslate(cal, (0.5-c.x)*speed, (0.5-c.y)*speed); |
5 | cal.translate = null; |
6 | } |
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: | 745 / 795 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |