1 | static S cal_simplifiedStructure(CirclesAndLines cal) {
|
2 | ret cal_simplifiedStructure(structure(cal)); |
3 | } |
4 | |
5 | static S cal_simplifiedStructure(S structure) {
|
6 | CirclesAndLines cal = cast unstructure(structure); |
7 | for (Circle c : cal.circles) {
|
8 | c.x = roundToOneHundredth(c.x); |
9 | c.y = roundToOneHundredth(c.y); |
10 | } |
11 | ret cal_structure_impl(cal); |
12 | } |
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: | 708 / 758 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |