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

12
LINES

< > BotCompany Repo | #1010305 // cal_simplifiedStructure - reduce coordinate precision

JavaX fragment (include)

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: 393 / 430
Version history: 6 change(s)
Referenced in: [show references]