From 2b62b23888f048f777510f5485695a2e564bb3ed Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 28 Nov 2019 23:30:41 +0100 Subject: [PATCH] product:: adj --- nonisotropic.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nonisotropic.cpp b/nonisotropic.cpp index a8531aea..5e0bb6db 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1210,6 +1210,13 @@ EX namespace product { transmatrix relative_matrix(cell *c2, cell *c1, const hyperpoint& hint) override { return in_underlying([&] { return calc_relative_matrix(where[c2].first, where[c1].first, hint); }) * mscale(Id, cgi.plevel * szgmod(where[c2].second - where[c1].second, csteps)); } + + transmatrix adj(cell *c, int i) override { + if(i == c->type-1) return mscale(Id, cgi.plevel); + else if(i == c->type-2) return mscale(Id, -cgi.plevel); + c = where[c].first; + return PIU(currentmap->adj(c, i)); + } void draw() override { auto w = hybrid::get_where(centerover);