java.lang.Object
io.qt.QtObject
io.qt.gui.QQuaternion
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a quaternion consisting of a vector and scalar
Java wrapper for Qt class QQuaternion
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Result type forgetAxes()
.static class
Result type forgetAxisAndAngle()
.static class
Result type forgetEulerAngles()
. -
Constructor Summary
ConstructorDescriptionQQuaternion
(float scalar, float xpos, float ypos, float zpos) QQuaternion
(float scalar, QVector3D vector) QQuaternion
(QQuaternion other) SeeQQuaternion::
QQuaternion(QQuaternion) QQuaternion
(QVector4D vector) -
Method Summary
Modifier and TypeMethodDescriptionfinal QQuaternion
add
(QQuaternion quaternion) clone()
Creates and returns a copy of this object.final QQuaternion
final QQuaternion
final QQuaternion
div
(float divisor) Seeoperator/(QQuaternion,
float) final QQuaternion
divide
(float divisor) static float
dotProduct
(QQuaternion q1, QQuaternion q2) final boolean
equals
(QQuaternion q2) Seeoperator==(QQuaternion,
QQuaternion) boolean
Seeoperator==(QQuaternion,
QQuaternion) static QQuaternion
static QQuaternion
fromAxisAndAngle
(float x, float y, float z, float angle) static QQuaternion
fromAxisAndAngle
(QVector3D axis, float angle) static QQuaternion
fromDirection
(QVector3D direction, QVector3D up) static QQuaternion
fromEulerAngles
(float pitch, float yaw, float roll) static QQuaternion
fromEulerAngles
(QVector3D eulerAngles) static QQuaternion
fromRotationMatrix
(QMatrix3x3 rot3x3) final QQuaternion.Axes
getAxes()
final QQuaternion.AxisAndAngle
final QQuaternion.EulerAngles
int
hashCode()
Returns the objects's hash code computed byqHash(QQuaternion)
.final QQuaternion
inverted()
final boolean
final boolean
isNull()
final float
length()
final float
final QQuaternion
minus
(QQuaternion q2) final QQuaternion
multiply
(float factor) final QQuaternion
multiply
(QQuaternion quaternion) static QQuaternion
nlerp
(QQuaternion q1, QQuaternion q2, float t) final void
final QQuaternion
final QQuaternion
plus
(QQuaternion q2) Seeoperator+(QQuaternion,
QQuaternion) static boolean
qFuzzyCompare
(QQuaternion q1, QQuaternion q2) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QQuaternion&) final QVector3D
rotatedVector
(QVector3D vector) static QQuaternion
rotationTo
(QVector3D from, QVector3D to) final float
scalar()
final void
setScalar
(float scalar) final void
setVector
(float x, float y, float z) final void
final void
setX
(float x) final void
setY
(float y) final void
setZ
(float z) static QQuaternion
slerp
(QQuaternion q1, QQuaternion q2, float t) final QQuaternion
subtract
(QQuaternion quaternion) final QQuaternion
times
(float factor) Seeoperator*(QQuaternion,
float) final QQuaternion
times
(QQuaternion q2) Seeoperator*(QQuaternion,
QQuaternion) final QVector3D
Seeoperator*(QQuaternion,
QVector3D) final QVector3D
final QMatrix3x3
toString()
Seeoperator<<(QDebug,
QQuaternion) final QVector4D
final QQuaternion
Seeoperator-(QQuaternion)
final QVector3D
vector()
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QQuaternion) final float
x()
final float
y()
final float
z()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QQuaternion
public QQuaternion() -
QQuaternion
See
QQuaternion::
QQuaternion(QQuaternion) -
QQuaternion
-
QQuaternion
-
QQuaternion
public QQuaternion(float scalar, float xpos, float ypos, float zpos)
-
-
Method Details
-
conjugate
-
conjugated
-
getAxes
-
getAxisAndAngle
-
getEulerAngles
-
inverted
-
isIdentity
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
times
See
operator*(QQuaternion,
QQuaternion) -
times
See
operator*(QQuaternion,
QVector3D) -
times
See
operator*(QQuaternion,
float) -
multiply
-
multiply
-
plus
See
operator+(QQuaternion,
QQuaternion) -
add
-
unaryMinus
See
operator-(QQuaternion)
-
minus
-
subtract
-
div
See
operator/(QQuaternion,
float) -
divide
-
writeTo
See
operator<<(QDataStream&,
QQuaternion) -
equals
See
operator==(QQuaternion,
QQuaternion) -
readFrom
See
operator>>(QDataStream&,
QQuaternion&) -
rotatedVector
-
scalar
-
setScalar
-
setVector
-
setVector
-
setX
-
setY
-
setZ
-
toEulerAngles
-
toRotationMatrix
-
toVector4D
-
vector
-
x
-
y
-
z
-
dotProduct
-
fromAxes
-
fromAxisAndAngle
-
fromAxisAndAngle
-
fromDirection
-
fromEulerAngles
-
fromEulerAngles
-
fromRotationMatrix
-
nlerp
-
qFuzzyCompare
-
rotationTo
-
slerp
-
equals
See
operator==(QQuaternion,
QQuaternion) -
hashCode
Returns the objects's hash code computed byqHash(QQuaternion)
. -
toString
See
operator<<(QDebug,
QQuaternion) -
clone
Creates and returns a copy of this object.
See
QQuaternion::
QQuaternion(QQuaternion)
-