From 7da9aa2e9bc0dc209d1a6daefd75f9bd556c3b45 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 5 May 2005 11:00:59 +0000 Subject: limit visible angle to -pi/3 to +pi/3 limit visible angle to -pi/3 to +pi/3 --- src/GipfelWidget.cxx | 2 +- src/Panorama.cxx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 5710ad0..7e8c258 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: GipfelWidget.cxx,v 1.19 2005/05/05 11:02:07 hofmann Exp $" +// "$Id: GipfelWidget.cxx,v 1.20 2005/05/05 13:00:59 hofmann Exp $" // // PSEditWidget routines. // diff --git a/src/Panorama.cxx b/src/Panorama.cxx index 04b63fe..484c36e 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -1,5 +1,5 @@ // -// "$Id: Panorama.cxx,v 1.26 2005/05/05 11:02:07 hofmann Exp $" +// "$Id: Panorama.cxx,v 1.27 2005/05/05 13:00:59 hofmann Exp $" // // Panorama routines. // @@ -436,13 +436,14 @@ Panorama::update_visible_mountains() { > height_dist_ratio)) { m->a_view = m->alph - a_center; + if (m->a_view > pi_d) { m->a_view -= 2.0*pi_d; } else if (m->a_view < -pi_d) { m->a_view += 2.0*pi_d; } - if (m->a_view < pi_d / 2.0 && m->a_view > - pi_d / 2.0) { + if (m->a_view < pi_d / 3.0 && m->a_view > - pi_d / 3.0) { visible_mountains->add(m); } } -- cgit v1.2.3