#include "qquaternion.h"
#include <QtCore/qmath.h>
#include <QtCore/qvariant.h>
#include <QtCore/qdebug.h>
Go to the source code of this file.
◆ 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());
qreal x() const
Returns the x coordinate of this quaternion's vector.
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.
◆ operator>>()
Definition at line 711 of file qquaternion.cpp.
713 double scalar, x, y, z;
void setZ(qreal z)
Sets the z coordinate of this quaternion's vector to the given z coordinate.
void setX(qreal x)
Sets the x coordinate of this quaternion's vector to the given x coordinate.
void setScalar(qreal scalar)
Sets the scalar component of this quaternion to scalar.
void setY(qreal y)
Sets the y coordinate of this quaternion's vector to the given y coordinate.