diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-04-01 13:16:44 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-04-01 13:16:44 +0200 |
commit | 9d8a88c1a46cc95f69e9bc0e50ed1134bef6c715 (patch) | |
tree | fa40a289a4fb129420c4c3099df0471c4236d9b4 /src/ProjectionCylindrical.H | |
parent | c368443056c0eda834f4924ca36c141d8d97f89e (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.H | 1 |
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); |