From 5f4c77358116895f8f9aa2cb1fb56064752a0e11 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 13 Nov 2017 11:26:46 +0100 Subject: [PATCH] fixed the disappearing center in equi-euclidean --- hypgraph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hypgraph.cpp b/hypgraph.cpp index 718eaa5f..995a56ef 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -152,6 +152,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) { if(mdEqui()) { ld rad = sqrt(H[0] * H[0] + H[1] * H[1]); + if(rad == 0) rad = 1; ld d = hdist0(H); // 4 pi / 2pi = M_PI