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's class QQuaternion
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQQuaternion
(float scalar, float xpos, float ypos, float zpos) QQuaternion
(float scalar, QVector3D vector) QQuaternion
(QVector4D vector) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QQuaternion
add
(QQuaternion quaternion) clone()
final QQuaternion
final QQuaternion
div
(float divisor) final QQuaternion
divide
(float divisor) static float
dotProduct
(QQuaternion q1, QQuaternion q2) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.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()
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) final QQuaternion
times
(QQuaternion q2) static QVector3D
times
(QQuaternion quaternion, QVector3D vec) final QVector3D
final QMatrix3x3
toString()
final QVector4D
final 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) -
QQuaternion
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
conjugated
-
getAxes
-
getAxisAndAngle
-
getEulerAngles
-
inverted
-
isIdentity
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
times
-
times
-
multiply
-
multiply
-
plus
-
add
-
unaryMinus
-
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
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-