diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-05-05 14:53:02 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-05-05 14:53:02 +0000 |
commit | 767ef733aa52ca53e2ee1bb1a37107c5fdf11e3b (patch) | |
tree | 5580cb81ad6f4e65399dde467d1abda4b8cfe6e2 | |
parent | 03ea98b6fece946fce0019bb3e84ab6793f9bedb (diff) |
fix
fix
-rw-r--r-- | src/Panorama.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx index e335153..a24b625 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -1,5 +1,5 @@ // -// "$Id: Panorama.cxx,v 1.28 2005/05/05 15:24:43 hofmann Exp $" +// "$Id: Panorama.cxx,v 1.29 2005/05/05 16:53:02 hofmann Exp $" // // Panorama routines. // @@ -288,15 +288,15 @@ Panorama::optimize(Mountain *m1, Mountain *m2) { a_nick = atan(tan_nick_view); a_center = atan(tan_dir_view); - if (fabs(a_center - m1->alph) > pi_d/2.0) { - a_center = a_center + pi_d; - } - if (a_center > 2.0 * pi_d) { a_center = a_center - 2.0 * pi_d; } else if (a_center < 0.0) { a_center = a_center + 2.0 * pi_d; } + + if (fabs(a_center - m1->alph) > pi_d/2.0) { + a_center = a_center + pi_d; + } scale = n_scale; |