diff options
Diffstat (limited to 'tksao/vector')
-rw-r--r-- | tksao/vector/vector.C | 23 | ||||
-rw-r--r-- | tksao/vector/vector.h | 3 |
2 files changed, 0 insertions, 26 deletions
diff --git a/tksao/vector/vector.C b/tksao/vector/vector.C index 45832ac..194aca5 100644 --- a/tksao/vector/vector.C +++ b/tksao/vector/vector.C @@ -7,7 +7,6 @@ #include "vector.h" #include "vector3d.h" #include "fuzzy.h" -#include "util.h" // Vector::manip @@ -45,28 +44,6 @@ Vector& Vector::clip(const BBox& bb) return *this; } -Vector& Vector::radToDeg() -{ - // we want the first coord to be 0-360 - v[0] = ::radToDeg(v[0]); - v[1] *= 180./M_PI; - return *this; -} - -Vector& Vector::degToRad() -{ - v[0] *= M_PI/180.; - v[1] *= M_PI/180.; - return *this; -} - -Vector& Vector::zeroTWOPI() -{ - // we want the first coord to be 0-2Pi - v[0] = ::zeroTWOPI(v[0]); - return *this; -} - Vector Vector::TkCanvasPs(void* canvas) { return Vector(v[0], Tk_CanvasPsY((Tk_Canvas)canvas, v[1])); diff --git a/tksao/vector/vector.h b/tksao/vector/vector.h index 915c81c..fc83648 100644 --- a/tksao/vector/vector.h +++ b/tksao/vector/vector.h @@ -74,9 +74,6 @@ class Vector { Vector normalize() {double d = sqrt(v[0]*v[0]+v[1]*v[1]); return d ? Vector(v[0]/d,v[1]/d) : Vector();} - Vector& radToDeg(); - Vector& degToRad(); - Vector& zeroTWOPI(); // restrict vector by bbox Vector& clip(const BBox&); |