From 4fb2440543f1cfbc3b516098f42a3a1c01c59853 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 13 Jul 2019 14:37:47 +0200 Subject: [PATCH] tanh used for better TwopointHybrid --- hypgraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 5c05e5e9..7bae13e9 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -1483,8 +1483,8 @@ void draw_model_elements() { queuereset(mdUnchanged, PPR::CIRCLE); for(int mode=0; mode<4; mode++) { - for(int s=-199; s<=199; s += 2) { - ld p = s / 200.; + for(int s=-200; s<=200; s ++) { + ld p = tanh(s / 40.); ld a = vid.twopoint_param * (1+p); ld b = vid.twopoint_param * (1-p); ld h = ((mode & 2) ? -1 : 1) * sqrt(asin_auto(tan_auto(a) * tan_auto(b)));