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
- Since:
- This class was introduced in Qt 4.6.
-
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) - 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
-
conjugate
- Returns:
-
conjugated
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
getAxes
- Since:
- This function was introduced in Qt 5.5.
-
getAxisAndAngle
- Since:
- This function was introduced in Qt 5.5.
-
getEulerAngles
- Since:
- This function was introduced in Qt 5.5.
-
inverted
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
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
See
operator+(QQuaternion,
QQuaternion) - Parameters:
q2
-- Returns:
-
add
- Parameters:
quaternion
-- Returns:
-
unaryMinus
See
operator-(QQuaternion)
- Returns:
-
minus
- Parameters:
q2
-- Returns:
-
subtract
- Parameters:
quaternion
-- Returns:
-
div
See
operator/(QQuaternion,
float) - Parameters:
divisor
-- Returns:
-
divide
- Parameters:
divisor
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QQuaternion) - Parameters:
arg__1
-
-
equals
See
operator==(QQuaternion,
QQuaternion) - Parameters:
q2
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QQuaternion&) - 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:
- Since:
- This function was introduced in Qt 5.5.
-
toRotationMatrix
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
toVector4D
- Returns:
-
vector
- Returns:
-
x
- Returns:
-
y
- Returns:
-
z
- Returns:
-
dotProduct
- Parameters:
q1
-q2
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
fromAxes
- Parameters:
xAxis
-yAxis
-zAxis
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
fromAxisAndAngle
- Parameters:
axis
-angle
-- Returns:
-
fromAxisAndAngle
- Parameters:
x
-y
-z
-angle
-- Returns:
-
fromDirection
- Parameters:
direction
-up
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
fromEulerAngles
- Parameters:
eulerAngles
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
fromEulerAngles
- Parameters:
pitch
-yaw
-roll
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
fromRotationMatrix
- Parameters:
rot3x3
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
nlerp
- Parameters:
q1
-q2
-t
-- Returns:
-
qFuzzyCompare
- Parameters:
q1
-q2
-- Returns:
-
rotationTo
- Parameters:
from
-to
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
slerp
- Parameters:
q1
-q2
-t
-- Returns:
-
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)
-