From c1243eea0933ea63b40293ee91b724d685af97a6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 14 Aug 2018 08:57:33 +0200 Subject: [PATCH] binary:: fixed relative_matrix --- binary-tiling.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 522c05ad..adf2463d 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -186,19 +186,19 @@ namespace binary { while(h1 != h2) { if(h1->distance <= h2->distance) { if(typeof(h2) == 6) - h2 = hr::createStep(h2, bd_down), where = xpush(log(2)) * where; + h2 = hr::createStep(h2, bd_down), where = xpush(-log(2)) * where; else if(mapside(h2) == 1) - h2 = hr::createStep(h2, bd_left), where = parabolic(-1) * where; + h2 = hr::createStep(h2, bd_left), where = parabolic(+1) * where; else if(mapside(h2) == -1) - h2 = hr::createStep(h2, bd_right), where = parabolic(1) * where; + h2 = hr::createStep(h2, bd_right), where = parabolic(-1) * where; } else { if(typeof(h1) == 6) - h1 = hr::createStep(h1, bd_down), gm = gm * xpush(-log(2)); + h1 = hr::createStep(h1, bd_down), gm = gm * xpush(log(2)); else if(mapside(h1) == 1) - h1 = hr::createStep(h1, bd_left), gm = gm * parabolic(1); + h1 = hr::createStep(h1, bd_left), gm = gm * parabolic(-1); else if(mapside(h1) == -1) - h1 = hr::createStep(h1, bd_right), gm = gm * parabolic(-1); + h1 = hr::createStep(h1, bd_right), gm = gm * parabolic(+1); } } return gm * where;