Skip to content

PythonQt.QtGui.QQuaternion

QQuaternion

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

Quaternions are used to represent rotations in 3D space, and consist of a 3D rotation axis specified by the x, y, and z coordinates, and a scalar representing the rotation angle.

Source: https://doc.qt.io/archives/qt-5.15/qquaternion.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
conjugate function (self) -> Any X.conjugate() -> PythonQt.QtGui.QQuaternion
conjugated function (self) -> Any X.conjugated() -> PythonQt.QtGui.QQuaternion
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
dotProduct function (self, q1: Any, q2: Any) -> float X.dotProduct(q1, q2) -> float
fromAxes function (self, xAxis: Any, yAxis: Any, zAxis: Any) -> Any X.fromAxes(xAxis, yAxis, zAxis) -> PythonQt.QtGui.QQuaternion
fromAxisAndAngle function (self, x: Any, y: Any, z: Any, angle: float) -> Any X.fromAxisAndAngle(x, y, z, angle) -> PythonQt.QtGui.QQuaternion
fromDirection function (self, direction: Any, up: Any) -> Any X.fromDirection(direction, up) -> PythonQt.QtGui.QQuaternion
fromEulerAngles function (self, pitch: Any, yaw: Any, roll: Any) -> Any X.fromEulerAngles(pitch, yaw, roll) -> PythonQt.QtGui.QQuaternion
getAxes function (self, xAxis: Any, yAxis: Any, zAxis: Any) -> None X.getAxes(xAxis, yAxis, zAxis)
getAxisAndAngle function (self, x: Any, y: Any, z: Any, angle: Any) -> Any X.getAxisAndAngle(x, y, z, angle)
getEulerAngles function (self, pitch: Any, yaw: Any, roll: Any) -> Any X.getEulerAngles(pitch, yaw, roll)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
inverted function (self) -> Any X.inverted() -> PythonQt.QtGui.QQuaternion
isIdentity function (self) -> bool X.isIdentity() -> bool
isNull function (self) -> bool X.isNull() -> bool
length function (self) -> float X.length() -> float
lengthSquared function (self) -> float X.lengthSquared() -> float
nlerp function (self, q1: Any, q2: Any, t: float) -> Any X.nlerp(q1, q2, t) -> PythonQt.QtGui.QQuaternion
normalize function (self) -> None Normalizes the current quaternion in place.
normalized function (self) -> Any X.normalized() -> PythonQt.QtGui.QQuaternion
readFrom function (self, arg__1: Any) -> Any (shared captured text)
rotatedVector function (self, vector: Any) -> Any X.rotatedVector(vector) -> PythonQt.QtGui.QVector3D
rotationTo function (self, *args: Any, **kwargs: Any) -> Any X.rotationTo(from, to) -> PythonQt.QtGui.QQuaternion
scalar function (self) -> float X.scalar() -> float
setScalar function (self, scalar: float) -> None Sets the scalar component of this quaternion to scalar.
setVector function (self, x: Any, y: Any, z: Any) -> None X.setVector(x, y, z)
setX function (self, x: float) -> None Sets the x coordinate of this quaternion's vector to the given x coordinate.
setY function (self, y: float) -> None Sets the y coordinate of this quaternion's vector to the given y coordinate.
setZ function (self, z: float) -> None Sets the z coordinate of this quaternion's vector to the given z coordinate.
slerp function (self, q1: Any, q2: Any, t: float) -> Any X.slerp(q1, q2, t) -> PythonQt.QtGui.QQuaternion
toEulerAngles function (self) -> Any X.toEulerAngles() -> PythonQt.QtGui.QVector3D
toVector4D function (self) -> Any X.toVector4D() -> PythonQt.QtGui.QVector4D
vector function (self) -> Any X.vector() -> PythonQt.QtGui.QVector3D
writeTo function (self, arg__1: Any) -> Any (shared captured text)
x function (self) -> float X.x() -> float
y function (self) -> float X.y() -> float
z function (self) -> float X.z() -> float