From 16eb050788f85415ecef0df50354ace6a6781862 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 29 Nov 2019 17:20:01 +0100 Subject: [PATCH] euclid:: relative_matrix takes hint into account --- euclid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/euclid.cpp b/euclid.cpp index 90f78b45..185ba773 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -202,7 +202,7 @@ EX namespace euclid3 { for(int b=-1; b<=1; b++) { if(b && WDIM == 2) continue; transmatrix T1 = I * eumove((c2 - cs) + a*T0[0] + b*T0[1]); - if(hdist0(tC0(T1)) < hdist0(tC0(T))) + if(hdist(tC0(T1), hint) < hdist(tC0(T), hint)) T = T1; } auto co = T0[WDIM-1];