diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 18:57:02 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 18:57:02 +0100 |
commit | e6ce5c34e610f27a6b0f7810918bf638c49c72d7 (patch) | |
tree | 026754ba96f4a3a8efc2bd6ca5b2347c329e198d /src/Panorama.cxx | |
parent | ca4c449ba9f3a40f8ac2c79a48f3d31144a1fafe (diff) |
various fixes
Diffstat (limited to 'src/Panorama.cxx')
-rw-r--r-- | src/Panorama.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx index 8b21fda..521a4ab 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -583,20 +583,9 @@ Panorama::get_real_distance(Hill *m) { } int -Panorama::get_coordinates(double a_view, double a_nick, double *x, double *y) { - a_view = a_view - parms.a_center; +Panorama::get_coordinates(double a_alph, double a_nick, double *x, double *y) { - if (a_view > pi_d) { - a_view -= 2.0*pi_d; - } else if (a_view < -pi_d) { - a_view += 2.0*pi_d; - } - - if (a_view > view_angle || a_view < - view_angle) { - return 1; - } - - proj->get_coordinates(a_view, a_nick, &parms, x, y); + proj->get_coordinates(a_alph, a_nick, &parms, x, y); return 0; } |