fixed euc::full_coords2 in bitruncated {4,4}

This commit is contained in:
Zeno Rogue 2019-12-27 11:30:27 +01:00
parent e8ff75b239
commit 432583d6ce
1 changed files with 9 additions and 0 deletions

View File

@ -1041,6 +1041,15 @@ EX int dcross(gp::loc e1, gp::loc e2) {
EX gp::loc full_coords2(cell *c) {
auto ans = eucmap()->ispacemap[c->master];
if(S7 == 4 && BITRUNCATED) {
if(c == c->master->c7) return to_loc(ans) * gp::loc(1,1);
else {
auto res = full_coords2(c->cmove(0)) + full_coords2(c->cmove(4));
res.first /= 2;
res.second /= 2;
return res;
}
}
if(BITRUNCATED)
return to_loc(ans) * gp::loc(1,1) + (c == c->master->c7 ? gp::loc(0,0) : gp::eudir((c->c.spin(0)+4)%6));
if(GOLDBERG) {