mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-14 10:08:06 +00:00
simplified ddspin/iddspin/cellgfxdist, replaced cellrelmatrix with adj/iadj
This commit is contained in:
@@ -821,6 +821,8 @@ EX namespace nilv {
|
||||
return child;
|
||||
}
|
||||
|
||||
transmatrix adj(cell *c, int i) override { return adjmatrix(i); }
|
||||
|
||||
virtual transmatrix relative_matrix(heptagon *h2, heptagon *h1) override {
|
||||
for(int a=0; a<S7; a++) if(h2 == h1->move(a)) return adjmatrix(a);
|
||||
return nisot::translate(mvec_to_point(coords[h1].inverse() * coords[h2]));
|
||||
|
||||
Reference in New Issue
Block a user