From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolf/vector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kolf/vector.cpp') 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; -- cgit v1.2.1