diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-08-16 17:23:26 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-08-16 17:23:26 (GMT) |
commit | 2557a11471ce1415d7984c82470343cd4c0ae2bf (patch) | |
tree | 4986c3b9224c0627894df74a0017d83f46eae8fd /tksao/util | |
parent | 33b8f9fd852477630addbf48a59d01849df5a096 (diff) | |
download | blt-2557a11471ce1415d7984c82470343cd4c0ae2bf.zip blt-2557a11471ce1415d7984c82470343cd4c0ae2bf.tar.gz blt-2557a11471ce1415d7984c82470343cd4c0ae2bf.tar.bz2 |
simplify wcs code
Diffstat (limited to 'tksao/util')
-rw-r--r-- | tksao/util/util.C | 31 | ||||
-rw-r--r-- | tksao/util/util.h | 3 |
2 files changed, 0 insertions, 34 deletions
diff --git a/tksao/util/util.C b/tksao/util/util.C index 6475a6d..ba34dab 100644 --- a/tksao/util/util.C +++ b/tksao/util/util.C @@ -144,37 +144,6 @@ Vector3d zeroTWOPI(const Vector3d& vv) return out; } -double zero360(double aa) -{ - if (isnan(aa) || isinf(aa) || (aa == -DBL_MAX) || (aa == DBL_MAX)) - return NAN; - - double rr = aa; - if (rr>=0) - while (rr>360) - rr -= 360; - else - while (rr<0) - rr += 360; - return rr; -} - -Vector zero360(const Vector& vv) -{ - Vector out = vv; - // we want the first coord to be 0-360 - out[0] = zero360(out[0]); - return out; -} - -Vector3d zero360(const Vector3d& vv) -{ - Vector3d out = vv; - // we want the first coord to be 0-360 - out[0] = zero360(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 4728f2d..5a9a1fa 100644 --- a/tksao/util/util.h +++ b/tksao/util/util.h @@ -88,18 +88,15 @@ extern char* toConstLower(const char*); extern char* toConstUpper(const char*); extern double zeroTWOPI(double); -extern double zero360(double); extern double m180To180(double); extern double degToRad(double); extern double radToDeg(double); extern Vector zeroTWOPI(const Vector&); -extern Vector zero360(const Vector&); extern Vector degToRad(const Vector&); extern Vector radToDeg(const Vector&); extern Vector3d zeroTWOPI(const Vector3d&); -extern Vector3d zero360(const Vector3d&); extern Vector3d degToRad(const Vector3d&); extern Vector3d radToDeg(const Vector3d&); |