summaryrefslogtreecommitdiffstats
path: root/tksao/util
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/util')
-rw-r--r--tksao/util/util.C31
-rw-r--r--tksao/util/util.h3
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&);