From c8bc90ea86c035cecfd1825bdecb687dfeb771a9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 4 May 2018 18:05:26 +0200 Subject: [PATCH] fixed the computation of gp::alpha (was visibly bad on GP(2,2) cube) --- goldberg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goldberg.cpp b/goldberg.cpp index 37f4fc35..6a19f95e 100644 --- a/goldberg.cpp +++ b/goldberg.cpp @@ -475,7 +475,7 @@ namespace gp { rhexf *= scale; // spin = spintox(next); // ispin = rspintox(next); - alpha = -atan2(next[1], next[0]); + alpha = -atan2(next[1], next[0]) * 6 / S7; base_distlimit = (base_distlimit + log(scale) / log(2.618)) / scale; if(base_distlimit > 30) base_distlimit = 30;