static S cal_simplifiedStructure(CirclesAndLines cal) { ret cal_simplifiedStructure(structure(cal)); } static S cal_simplifiedStructure(S structure) { CirclesAndLines cal = cast unstructure(structure); for (Circle c : cal.circles) { c.x = roundToOneHundredth(c.x); c.y = roundToOneHundredth(c.y); } ret cal_structure_impl(cal); }
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: | #1010305 |
Snippet name: | cal_simplifiedStructure - reduce coordinate precision |
Eternal ID of this version: | #1010305/7 |
Text MD5: | dc8f0227255c10943e2498b61fb3b3ff |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-11 01:27:24 |
Source code size: | 359 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 475 / 515 |
Version history: | 6 change(s) |
Referenced in: | [show references] |