From 483a5e253c97245cd197516876fa99cffbb92b6e Mon Sep 17 00:00:00 2001 From: ? Date: Wed, 27 Feb 2019 17:58:02 +0100 Subject: [PATCH] 3D:: fixed binary::relative_matrix --- binary-tiling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 6cfe4bb1..5a30bc0e 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -306,7 +306,7 @@ namespace binary { while(h1 != h2) { if(h1->distance <= h2->distance) { if(DIM == 3) - h2 = hr::createStep(h2, 8), where = inverse(tmatrix(h2, 8)) * where; + where = inverse(tmatrix(h2, 8)) * where, h2 = hr::createStep(h2, 8); else { if(type_of(h2) == 6) h2 = hr::createStep(h2, bd_down), where = xpush(-log(2)) * where; @@ -318,7 +318,7 @@ namespace binary { } else { if(DIM == 3) - h1 = hr::createStep(h1, 8), where = where * tmatrix(h1, 8); + gm = gm * tmatrix(h1, 8), h1 = hr::createStep(h1, 8); else { if(type_of(h1) == 6) h1 = hr::createStep(h1, bd_down), gm = gm * xpush(log(2));