From f350c96aeeda4be8174c75f900a2e22ce18dcdf6 Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 16 Aug 2018 13:47:27 -0400 Subject: simplify wcs code --- tksao/util/util.C | 16 ---------------- tksao/util/util.h | 3 --- 2 files changed, 19 deletions(-) diff --git a/tksao/util/util.C b/tksao/util/util.C index ec278aa..11d692f 100644 --- a/tksao/util/util.C +++ b/tksao/util/util.C @@ -128,22 +128,6 @@ double zeroTWOPI(double aa) return rr; } -Vector zeroTWOPI(const Vector& vv) -{ - Vector out = vv; - // we want the first coord to be 0-2Pi - out[0] = zeroTWOPI(out[0]); - return out; -} - -Vector3d zeroTWOPI(const Vector3d& vv) -{ - Vector3d out = vv; - // we want the first coord to be 0-2Pi - out[0] = zeroTWOPI(out[0]); - return out; -} - double m180To180(double aa) { if (isnan(aa) || isinf(aa) || (aa == -DBL_MAX) || (aa == DBL_MAX)) diff --git a/tksao/util/util.h b/tksao/util/util.h index 13a1e8a..8b5247c 100644 --- a/tksao/util/util.h +++ b/tksao/util/util.h @@ -92,10 +92,7 @@ extern double m180To180(double); extern double degToRad(double); extern double radToDeg(double); -extern Vector zeroTWOPI(const Vector&); extern Vector degToRad(const Vector&); - -extern Vector3d zeroTWOPI(const Vector3d&); extern Vector3d degToRad(const Vector3d&); extern int parseSection(char*, Vector*, Vector*); -- cgit v0.12