relative_matrix and adj changed

This commit is contained in:
Zeno Rogue committed 2019-11-30 18:05:23 +01:00
1 parent f3beb9d2ac
commit 7e8ede4bd6
13 files changed
+61 -59

No files matched your search

+2 -2
View File
@@ -170,9 +170,9 @@ struct hrmap_asonov : hrmap {
return child;
}
transmatrix adj(cell *c, int i) override { return adjmatrix(i); }
transmatrix adj(heptagon *h, int i) override { return adjmatrix(i); }
virtual transmatrix relative_matrix(heptagon *h2, heptagon *h1) override {
virtual transmatrix relative_matrix(heptagon *h2, heptagon *h1, const hyperpoint& hint) override {
for(int a=0; a<S7; a++) if(h2 == h1->move(a)) return adjmatrix(a);
return coord_to_matrix(coords[h2], coords[h1]);
}