diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-05 23:05:07 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-05 23:05:07 +0200 |
commit | 9dc27696df2ad91c4df9f125f53f74bde4148946 (patch) | |
tree | 64eb0333bf446bfd38d8eb9fc161c53b9e406653 | |
parent | 5e981a4ecb4b1a2c9f575a51e3c1a6a7ba98a7cc (diff) |
whitespace
-rw-r--r-- | src/Panorama.H | 2 | ||||
-rw-r--r-- | src/Panorama.cxx | 18 |
2 files changed, 6 insertions, 14 deletions
diff --git a/src/Panorama.H b/src/Panorama.H index bfa70d5..226b6dc 100644 --- a/src/Panorama.H +++ b/src/Panorama.H @@ -11,8 +11,6 @@ #include "ProjectionLSQ.H" #include "ViewParams.H" - - class Panorama { private: double view_phi, view_lam, view_height; diff --git a/src/Panorama.cxx b/src/Panorama.cxx index aba5fbf..b9c47de 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -82,7 +82,6 @@ Panorama::remove_hills(int flags) { mountains = h_new; } - int Panorama::set_viewpoint(const char *name) { Hill *m = get_pos(name); @@ -114,7 +113,6 @@ Panorama::set_viewpoint(const Hill *m) { update_angles(); } - Hills * Panorama::get_mountains() { return mountains; @@ -329,31 +327,27 @@ Panorama::mark_hidden(Hills *hills) { m->flags &= ~Hill::HIDDEN; - if (m->flags & Hill::DUPLICATE) { + if (m->flags & Hill::DUPLICATE) continue; - } for (j=0; j<hills->get_num(); j++) { n = hills->get(j); - if (n->flags & Hill::DUPLICATE || n->flags & Hill::TRACK_POINT) { + if (n->flags & Hill::DUPLICATE || n->flags & Hill::TRACK_POINT) continue; - } - if (m == n || fabs(m->alph - n->alph > pi_d / 2.0)) { + + if (m == n || fabs(m->alph - n->alph > pi_d / 2.0)) continue; - } - if (m->dist < n->dist || m->a_nick > n->a_nick) { + + if (m->dist < n->dist || m->a_nick > n->a_nick) continue; - } h = (n->a_nick - m->a_nick) / fabs(m->alph - n->alph); if (isinf(h) || h > hide_value) { m->flags |= Hill::HIDDEN; } } - } - } void |