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()
.Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQQuaternion
(float scalar, float xpos, float ypos, float zpos) QQuaternion
(float scalar, QVector3D vector) 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
div
(float divisor) final QQuaternion
divide
(float divisor) static float
dotProduct
(QQuaternion q1, QQuaternion q2) boolean
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) static boolean
qFuzzyCompare
(QQuaternion q1, QQuaternion q2) void
readFrom
(QDataStream arg__1) 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) static QVector3D
times
(QQuaternion quaternion, QVector3D vec) final QVector3D
final QMatrix3x3
toString()
Seeoperator<<(QDebug,
QQuaternion) final QVector4D
final QQuaternion
Seeoperator-(QQuaternion)
final QVector3D
vector()
void
writeTo
(QDataStream arg__1) final float
x()
final float
y()
final float
z()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QQuaternion
public QQuaternion() -
QQuaternion
-
QQuaternion
-
QQuaternion
public QQuaternion(float scalar, float xpos, float ypos, float zpos)
-
-
Method Details
-
conjugated
-
getAxes
-
getAxisAndAngle
-
getEulerAngles
-
inverted
-
isIdentity
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
times
See
operator*(QQuaternion,
QQuaternion) -
times
See
operator*(QQuaternion,
float) -
multiply
-
multiply
-
plus
-
add
-
unaryMinus
See
operator-(QQuaternion)
-
minus
-
subtract
-
div
-
divide
-
writeTo
-
readFrom
-
rotatedVector
-
scalar
-
setScalar
-
setVector
-
setVector
-
setX
-
setY
-
setZ
-
toEulerAngles
-
toRotationMatrix
-
toVector4D
-
vector
-
x
-
y
-
z
-
dotProduct
-
fromAxes
-
fromAxisAndAngle
-
fromAxisAndAngle
-
fromDirection
-
fromEulerAngles
-
fromEulerAngles
-
fromRotationMatrix
-
nlerp
-
times
-
qFuzzyCompare
-
rotationTo
-
slerp
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QQuaternion)
. -
toString
See
operator<<(QDebug,
QQuaternion) -
clone
Creates and returns a copy of this object.
-