diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-04-15 21:56:08 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-04-15 21:56:08 (GMT) |
commit | c51b0e8389f52f895a9d69e9e96c1fd768d78bf4 (patch) | |
tree | a77e655a6539326b9ea2087d64358a70237a9466 /src/gui/math3d/qquaternion.h | |
parent | ca83968f235c731f3bd1eb38e3c97d38d34565a0 (diff) | |
download | Qt-c51b0e8389f52f895a9d69e9e96c1fd768d78bf4.zip Qt-c51b0e8389f52f895a9d69e9e96c1fd768d78bf4.tar.gz Qt-c51b0e8389f52f895a9d69e9e96c1fd768d78bf4.tar.bz2 |
Remove the int constructors from the vector classes
The int constructors existed to make fixed-point conversions faster
in certain circumstances. With the removal of fixed-point support,
they are no longer required.
Reviewed-by: trustme
Diffstat (limited to 'src/gui/math3d/qquaternion.h')
-rw-r--r-- | src/gui/math3d/qquaternion.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/math3d/qquaternion.h b/src/gui/math3d/qquaternion.h index f0cb308..a03b53b 100644 --- a/src/gui/math3d/qquaternion.h +++ b/src/gui/math3d/qquaternion.h @@ -60,7 +60,6 @@ class Q_GUI_EXPORT QQuaternion public: QQuaternion(); QQuaternion(qreal scalar, qreal xpos, qreal ypos, qreal zpos); - QQuaternion(int scalar, int xpos, int ypos, int zpos); #ifndef QT_NO_VECTOR3D QQuaternion(qreal scalar, const QVector3D& vector); #endif @@ -143,8 +142,6 @@ inline QQuaternion::QQuaternion(qreal scalar, qreal xpos, qreal ypos, qreal zpos inline QQuaternion::QQuaternion(float scalar, float xpos, float ypos, float zpos, int) : wp(scalar), xp(xpos), yp(ypos), zp(zpos) {} -inline QQuaternion::QQuaternion(int scalar, int xpos, int ypos, int zpos) : wp(scalar), xp(xpos), yp(ypos), zp(zpos) {} - inline bool QQuaternion::isNull() const { return qIsNull(xp) && qIsNull(yp) && qIsNull(zp) && qIsNull(wp); |