From a6d53944cdf88579c937b56ea735a3f61248ac18 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 29 Jan 2023 14:17:03 +0100 Subject: [PATCH] fixup to coordinates --- binary-tiling.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 4e5d82ff..c2d207ab 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -1034,6 +1034,12 @@ EX hyperpoint get_horopoint(hyperpoint h) { return get_horopoint(h[0], h[1]); } +EX hyperpoint inverse_horopoint(hyperpoint h) { + hyperpoint h1 = deparabolic13(h); + h1[1] /= 2 * bt::xy_mul(); h1[0] *= -1; + return h1; + } + EX hyperpoint get_corner_horo_coordinates(cell *c, int i) { ld yy = log(2) / 2; ld xx = 1 / 2.;