auxiliary functions adjmod and iadjmod

This commit is contained in:
Zeno Rogue 2023-05-23 20:20:55 +02:00
parent c6b27c5b27
commit b808d78e7f
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ public:
/** generate a new map that is disconnected from what we already have, disconnected from the map we have so far */
virtual cell* gen_extra_origin(int fv) { throw hr_exception("gen_extra_origin not supported on this map"); }
transmatrix adjmod(cell *c, int i) { return adj(c, gmod(i, c->type)); }
transmatrix adjmod(heptagon *h, int i) { return adj(h, gmod(i, h->type)); }
transmatrix iadjmod(cell *c, int i) { return iadj(c, gmod(i, c->type)); }
transmatrix iadjmod(heptagon *h, int i) { return iadj(h, gmod(i, h->type)); }
};
/** hrmaps which are based on regular non-Euclidean 2D tilings, possibly quotient