From 77cf19fadcaf59e7cdd18ae9407bfe38eeb74d0a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 28 Sep 2019 16:53:35 +0200 Subject: [PATCH] fixed spherity --- hypgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 204eb79f..70bf0810 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -887,7 +887,7 @@ EX ld spherity(const hyperpoint& h) { if(!sphere) return 1; if(vid.alpha > 1) { - return to01(1/vid.alpha, 1, -h[2]); + return to01(1/vid.alpha, 1, abs(h[2])); } if(vid.alpha <= 1) {