summaryrefslogtreecommitdiff
path: root/src/Panorama.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 11:49:32 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 11:49:32 +0200
commit7d900b4ede22215413e4a0ddd1675c650ba3225f (patch)
tree6e39f45e68578ebc33e42b920c2370cefd954a3e /src/Panorama.cxx
parent8b9902ac6e239bd36681a2997ee1bdfa4239a5d8 (diff)
implement various helper methods
Diffstat (limited to 'src/Panorama.cxx')
-rw-r--r--src/Panorama.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Panorama.cxx b/src/Panorama.cxx
index c8cb1dc..55fb9b8 100644
--- a/src/Panorama.cxx
+++ b/src/Panorama.cxx
@@ -586,3 +586,18 @@ Panorama::get_real_distance(Hill *m) {
return c;
}
+int
+Panorama::get_coordinates(double a_view, double a_nick, int *x, int *y) {
+ Hill *m = new Hill(0,0);
+
+ m->a_view = a_view;
+ m->a_nick = a_nick;
+
+ proj->set_coordinates(m, &parms);
+
+ *x = m->x;
+ *y = m->y;
+
+ return 0;
+}
+