From b808d78e7f097b08d411034ea13a1aa5692e8601 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 23 May 2023 20:20:55 +0200 Subject: [PATCH] auxiliary functions adjmod and iadjmod --- cell.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cell.cpp b/cell.cpp index 568febcc..e0ed71ae 100644 --- a/cell.cpp +++ b/cell.cpp @@ -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