diff options
Diffstat (limited to 'kolf/vector.cpp')
-rw-r--r-- | kolf/vector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kolf/vector.cpp b/kolf/vector.cpp index f4c05262..0a3458b9 100644 --- a/kolf/vector.cpp +++ b/kolf/vector.cpp @@ -5,7 +5,7 @@ // this and vector.h by Ryan Cummings // Creates a vector with between two points -Vector::Vector(const QPoint &source, const QPoint &dest) { +Vector::Vector(const TQPoint &source, const TQPoint &dest) { _magnitude = sqrt(pow(source.x() - dest.x(), 2) + pow(source.y() - dest.y(), 2)); _direction = atan2(source.y() - dest.y(), source.x() - dest.x()); } @@ -94,12 +94,12 @@ void Vector::setComponents(double x, double y) { _magnitude = sqrt((x * x) + (y * y)); } -void debugPoint(const QString &text, const Point &p) +void debugPoint(const TQString &text, const Point &p) { kdDebug(12007) << text << " (" << p.x << ", " << p.y << ")" << endl; } -void debugVector(const QString &text, const Vector &p) +void debugVector(const TQString &text, const Vector &p) { // debug degrees kdDebug(12007) << text << " (magnitude: " << p.magnitude() << ", direction: " << p.direction() << ", direction (deg): " << (360L / (2L * M_PI)) * p.direction() << ")" << endl; |