1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-04 19:29:02 +00:00

getCdata and getBits: prod -> hybri

This commit is contained in:
Zeno Rogue
2020-05-15 18:31:32 +02:00
parent 58a4583bb7
commit 3f20ba9d29
4 changed files with 29 additions and 10 deletions

View File

@@ -1072,12 +1072,7 @@ EX namespace hybrid {
transmatrix T;
cell *cw = hybrid::get_where(c).first;
hybrid::in_underlying_geometry([&] {
hyperpoint h0 = get_corner_position(cw, i);
hyperpoint h1 = get_corner_position(cw, (i+1));
hyperpoint hm = mid(h0, h1);
ld d = hdist0(hm);
d *= 2;
T = xpush(-d) * spintox(hm);
T = to_other_side(get_corner_position(cw, i), get_corner_position(cw, (i+1)));
});
return T;
}