From 7bf6b08fcda6c2fc37405e4a77f23b73191bd671 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 14 Nov 2005 22:28:49 +0100 Subject: fix ProjectionSphaeric::comp_params() sprinkle some const add copy constructor to Hill --- src/Hill.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/Hill.cxx') 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; -- cgit v1.2.3