diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-14 22:28:49 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-14 22:28:49 +0100 |
commit | 7bf6b08fcda6c2fc37405e4a77f23b73191bd671 (patch) | |
tree | 02df42664ab05af84c5048c02fb054cde5cdbdde /src/Hill.cxx | |
parent | 19850dc902ecd194254043adc457916c462a0263 (diff) |
fix ProjectionSphaeric::comp_params()
sprinkle some const
add copy constructor to Hill
Diffstat (limited to 'src/Hill.cxx')
-rw-r--r-- | src/Hill.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Hill.cxx b/src/Hill.cxx index 9c39779..626e470 100644 --- a/src/Hill.cxx +++ b/src/Hill.cxx @@ -41,6 +41,22 @@ Hill::Hill(const char *n, double p, double l, double h) { flags = 0; } +Hill::Hill(const Hill& h) { + name = strdup(h.name); + phi = h.phi; + lam = h.lam; + height = h.height; + alph = h.alph; + a_view = h.a_view; + a_view = h.a_view; + dist = h.dist; + x = h.x; + y = h.y; + label_x = h.label_x; + label_y = h.label_y; + flags = h.flags; +} + Hill::Hill(int x_tmp, int y_tmp) { name = ""; phi = 0.0; |