diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-27 19:38:31 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-27 19:38:31 (GMT) |
commit | 6a6e71b76c9c3e73d254572a3d27b20328a90749 (patch) | |
tree | 6dddf71c697f85f384d17c91df73178a008bb161 | |
parent | 46ea56f9a283b53b3b247d05783bd8da74e55d66 (diff) | |
download | blt-6a6e71b76c9c3e73d254572a3d27b20328a90749.zip blt-6a6e71b76c9c3e73d254572a3d27b20328a90749.tar.gz blt-6a6e71b76c9c3e73d254572a3d27b20328a90749.tar.bz2 |
redefine degToRad
-rw-r--r-- | tksao/util/util.C | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tksao/util/util.C b/tksao/util/util.C index edae5c6..dedaba9 100644 --- a/tksao/util/util.C +++ b/tksao/util/util.C @@ -171,15 +171,6 @@ double m180To180(double aa) return rr; } -double degToRad(double aa) -{ - if (isnan(aa) || isinf(aa) || (aa == -DBL_MAX) || (aa == DBL_MAX)) - return NAN; - - double rr = M_PI*aa/180.; - return zeroTWOPI(rr); -} - double radToDeg(double aa) { if (isnan(aa) || isinf(aa) || (aa == -DBL_MAX) || (aa == DBL_MAX)) @@ -207,6 +198,15 @@ Vector3d radToDeg(const Vector3d& vv) return out; } +double degToRad(double aa) +{ + if (isnan(aa) || isinf(aa) || (aa == -DBL_MAX) || (aa == DBL_MAX)) + return NAN; + + double rr = M_PI*aa/180.; + return zeroTWOPI(rr); +} + Vector degToRad(const Vector& vv) { Vector out =vv; |