src/gui/math3d/qvector3d.h
changeset 30 5dc02b23752f
parent 18 2f34d5167611
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   139     friend QVector3D operator*(const QVector3D& vector, const QMatrix4x4& matrix);
   139     friend QVector3D operator*(const QVector3D& vector, const QMatrix4x4& matrix);
   140     friend QVector3D operator*(const QMatrix4x4& matrix, const QVector3D& vector);
   140     friend QVector3D operator*(const QMatrix4x4& matrix, const QVector3D& vector);
   141 #endif
   141 #endif
   142 };
   142 };
   143 
   143 
       
   144 Q_DECLARE_TYPEINFO(QVector3D, Q_MOVABLE_TYPE);
       
   145 
   144 inline QVector3D::QVector3D() : xp(0.0f), yp(0.0f), zp(0.0f) {}
   146 inline QVector3D::QVector3D() : xp(0.0f), yp(0.0f), zp(0.0f) {}
   145 
   147 
   146 inline QVector3D::QVector3D(qreal xpos, qreal ypos, qreal zpos) : xp(xpos), yp(ypos), zp(zpos) {}
   148 inline QVector3D::QVector3D(qreal xpos, qreal ypos, qreal zpos) : xp(xpos), yp(ypos), zp(zpos) {}
   147 
   149 
   148 inline QVector3D::QVector3D(float xpos, float ypos, float zpos, int) : xp(xpos), yp(ypos), zp(zpos) {}
   150 inline QVector3D::QVector3D(float xpos, float ypos, float zpos, int) : xp(xpos), yp(ypos), zp(zpos) {}