#include <QtGui/qvector3d.h>
#include <QtGui/qvector4d.h>
Go to the source code of this file.
|
bool | operator!= (const QQuaternion &q1, const QQuaternion &q2) |
|
const QQuaternion | operator* (const QQuaternion &q1, const QQuaternion &q2) |
|
const QQuaternion | operator* (qreal factor, const QQuaternion &quaternion) |
|
const QQuaternion | operator* (const QQuaternion &quaternion, qreal factor) |
|
const QQuaternion | operator+ (const QQuaternion &q1, const QQuaternion &q2) |
|
const QQuaternion | operator- (const QQuaternion &q1, const QQuaternion &q2) |
|
const QQuaternion | operator- (const QQuaternion &quaternion) |
|
const QQuaternion | operator/ (const QQuaternion &quaternion, qreal divisor) |
|
Q_GUI_EXPORT QDebug | operator<< (QDebug dbg, const QQuaternion &q) |
|
Q_GUI_EXPORT QDataStream & | operator<< (QDataStream &, const QQuaternion &) |
|
bool | operator== (const QQuaternion &q1, const QQuaternion &q2) |
|
Q_GUI_EXPORT QDataStream & | operator>> (QDataStream &, QQuaternion &) |
|
| Q_DECLARE_TYPEINFO (QQuaternion, Q_MOVABLE_TYPE) |
|
bool | qFuzzyCompare (const QQuaternion &q1, const QQuaternion &q2) |
|
◆ operator!=()
◆ operator*() [1/3]
Definition at line 198 of file qquaternion.h.
203 qreal xx = ww + yy + zz;
The QQuaternion class represents a quaternion consisting of a vector and scalar.
◆ operator*() [2/3]
Definition at line 249 of file qquaternion.h.
251 return QQuaternion(quaternion.
wp * factor, quaternion.
xp * factor, quaternion.
yp * factor, quaternion.
zp * factor);
The QQuaternion class represents a quaternion consisting of a vector and scalar.
◆ operator*() [3/3]
Definition at line 254 of file qquaternion.h.
256 return QQuaternion(quaternion.
wp * factor, quaternion.
xp * factor, quaternion.
yp * factor, quaternion.
zp * factor);
The QQuaternion class represents a quaternion consisting of a vector and scalar.
◆ operator+()
Definition at line 239 of file qquaternion.h.
The QQuaternion class represents a quaternion consisting of a vector and scalar.
◆ operator-() [1/2]
Definition at line 244 of file qquaternion.h.
The QQuaternion class represents a quaternion consisting of a vector and scalar.
◆ operator-() [2/2]
Definition at line 259 of file qquaternion.h.
The QQuaternion class represents a quaternion consisting of a vector and scalar.
◆ operator/()
Definition at line 264 of file qquaternion.h.
266 return QQuaternion(quaternion.
wp / divisor, quaternion.
xp / divisor, quaternion.
yp / divisor, quaternion.
zp / divisor);
The QQuaternion class represents a quaternion consisting of a vector and scalar.
◆ operator<<() [1/2]
Definition at line 666 of file qquaternion.cpp.
669 <<
", vector:(" << q.
x() <<
", " 670 << q.
y() <<
", " << q.
z() <<
"))";
qreal x() const
Returns the x coordinate of this quaternion's vector.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
qreal scalar() const
Returns the scalar component of this quaternion.
qreal y() const
Returns the y coordinate of this quaternion's vector.
qreal z() const
Returns the z coordinate of this quaternion's vector.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
◆ operator<<() [2/2]
Definition at line 691 of file qquaternion.cpp.
693 stream << double(quaternion.scalar()) <<
double(quaternion.x())
694 <<
double(quaternion.y()) <<
double(quaternion.z());
◆ operator==()
◆ operator>>()
Definition at line 711 of file qquaternion.cpp.
713 double scalar, x, y, z;
718 quaternion.setScalar(
qreal(scalar));
719 quaternion.setX(
qreal(x));
720 quaternion.setY(
qreal(y));
721 quaternion.setZ(
qreal(z));
◆ Q_DECLARE_TYPEINFO()
◆ qFuzzyCompare()
Definition at line 269 of file qquaternion.h.
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
The qFuzzyCompare function is for comparing two matrices using a fuzziness factor.