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
div
(float divisor) final QQuaternion
divide
(float divisor) static float
dotProduct
(QQuaternion q1, QQuaternion q2) final boolean
equals
(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) 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) 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) - Parameters:
other
-
-
QQuaternion
- Parameters:
vector
-
-
QQuaternion
- Parameters:
scalar
-vector
-
-
QQuaternion
public QQuaternion(float scalar, float xpos, float ypos, float zpos) - Parameters:
scalar
-xpos
-ypos
-zpos
-
-
-
Method Details
-
conjugated
- Returns:
-
getAxes
-
getAxisAndAngle
-
getEulerAngles
-
inverted
- Returns:
-
isIdentity
- Returns:
-
isNull
- Returns:
-
length
- Returns:
-
lengthSquared
- Returns:
-
normalize
-
normalized
- Returns:
-
times
See
operator*(QQuaternion,
QQuaternion) - Parameters:
q2
-- Returns:
-
times
See
operator*(QQuaternion,
QVector3D) - Parameters:
vec
-- Returns:
-
times
See
operator*(QQuaternion,
float) - Parameters:
factor
-- Returns:
-
multiply
- Parameters:
quaternion
-- Returns:
-
multiply
- Parameters:
factor
-- Returns:
-
plus
- Parameters:
q2
-- Returns:
-
add
- Parameters:
quaternion
-- Returns:
-
unaryMinus
See
operator-(QQuaternion)
- Returns:
-
minus
- Parameters:
q2
-- Returns:
-
subtract
- Parameters:
quaternion
-- Returns:
-
div
- Parameters:
divisor
-- Returns:
-
divide
- Parameters:
divisor
-- Returns:
-
writeTo
- Parameters:
arg__1
-
-
equals
- Parameters:
q2
-- Returns:
-
readFrom
- Parameters:
arg__1
-
-
rotatedVector
- Parameters:
vector
-- Returns:
-
scalar
- Returns:
-
setScalar
- Parameters:
scalar
-
-
setVector
- Parameters:
vector
-
-
setVector
- Parameters:
x
-y
-z
-
-
setX
- Parameters:
x
-
-
setY
- Parameters:
y
-
-
setZ
- Parameters:
z
-
-
toEulerAngles
- Returns:
-
toRotationMatrix
- Returns:
-
toVector4D
- Returns:
-
vector
- Returns:
-
x
- Returns:
-
y
- Returns:
-
z
- Returns:
-
dotProduct
- Parameters:
q1
-q2
-- Returns:
-
fromAxes
- Parameters:
xAxis
-yAxis
-zAxis
-- Returns:
-
fromAxisAndAngle
- Parameters:
axis
-angle
-- Returns:
-
fromAxisAndAngle
- Parameters:
x
-y
-z
-angle
-- Returns:
-
fromDirection
- Parameters:
direction
-up
-- Returns:
-
fromEulerAngles
- Parameters:
eulerAngles
-- Returns:
-
fromEulerAngles
- Parameters:
pitch
-yaw
-roll
-- Returns:
-
fromRotationMatrix
- Parameters:
rot3x3
-- Returns:
-
nlerp
- Parameters:
q1
-q2
-t
-- Returns:
-
qFuzzyCompare
- Parameters:
q1
-q2
-- Returns:
-
rotationTo
- Parameters:
from
-to
-- Returns:
-
slerp
- Parameters:
q1
-q2
-t
-- Returns:
-
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.
See
QQuaternion::
QQuaternion(QQuaternion)
-