summaryrefslogtreecommitdiff
path: root/src/ProjectionCylindrical.H
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-04-01 13:16:44 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-04-01 13:16:44 +0200
commit9d8a88c1a46cc95f69e9bc0e50ed1134bef6c715 (patch)
treefa40a289a4fb129420c4c3099df0471c4236d9b4 /src/ProjectionCylindrical.H
parentc368443056c0eda834f4924ca36c141d8d97f89e (diff)
fix bug in cylindrical projection
If one peak is "left" and one is "right" of north, cylindrical projection was not able to compute proper viewing parameters. This is fixed by adjusting alpha angles of known hills to be increasing with x.
Diffstat (limited to 'src/ProjectionCylindrical.H')
-rw-r--r--src/ProjectionCylindrical.H1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ProjectionCylindrical.H b/src/ProjectionCylindrical.H
index 41bad29..06709c4 100644
--- a/src/ProjectionCylindrical.H
+++ b/src/ProjectionCylindrical.H
@@ -13,6 +13,7 @@ class ProjectionCylindrical : public ProjectionLSQ {
public:
virtual double get_view_angle() {return 6.2831853;}; /* 360 deg */
+ virtual int comp_params(const Hills *h, ViewParams *parms);
#define ARGS double c_view, double c_nick, double c_tilt, double scale, double k0, double k1, double x0, double m_view, double m_nick
virtual double mac_x(ARGS);