Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QQuaternion »

Informations générales

Héritage

builtins.object
    Object
        QQuaternion

Définition

class QQuaternion(Object):

Description [extrait de QQuaternion.__doc__]

QQuaternion(self)
QQuaternion(self, scalar: float, vector: PySide2.QtGui.QVector3D)
QQuaternion(self, scalar: float, xpos: float, ypos: float, zpos: float)
QQuaternion(self, vector: PySide2.QtGui.QVector4D)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des opérateurs

Signature de l'opérateur Description
__add__(self, q2: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion __add__(self, q2: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion [extrait de __add__.__doc__]
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__iadd__(self, quaternion: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion __iadd__(self, quaternion: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion [extrait de __iadd__.__doc__]
__imul__ __imul__(self, factor: float) -> PySide2.QtGui.QQuaternion [extrait de __imul__.__doc__]
__isub__(self, quaternion: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion __isub__(self, quaternion: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion [extrait de __isub__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__mul__ __mul__(self, factor: float) -> PySide2.QtGui.QQuaternion [extrait de __mul__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__neg__(self) -> PySide2.QtGui.QQuaternion __neg__(self) -> PySide2.QtGui.QQuaternion [extrait de __neg__.__doc__]
__radd__(self, value) Return value+self. [extrait de __radd__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rmul__(self, value) Return value*self. [extrait de __rmul__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __rshift__.__doc__]
__rsub__(self, value) Return value-self. [extrait de __rsub__.__doc__]
__rtruediv__(self, value) Return value/self. [extrait de __rtruediv__.__doc__]
__sub__(self, q2: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion __sub__(self, q2: PySide2.QtGui.QQuaternion) -> PySide2.QtGui.QQuaternion [extrait de __sub__.__doc__]
__truediv__(self, value) Return self/value. [extrait de __truediv__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__bool__(self) self != 0 [extrait de __bool__.__doc__]
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
conjugate(self) -> PySide2.QtGui.QQuaternion conjugate(self) -> PySide2.QtGui.QQuaternion [extrait de conjugate.__doc__]
conjugated(self) -> PySide2.QtGui.QQuaternion conjugated(self) -> PySide2.QtGui.QQuaternion [extrait de conjugated.__doc__]
dotProduct(q1: PySide2.QtGui.QQuaternion, q2: PySide2.QtGui.QQuaternion) -> float dotProduct(q1: PySide2.QtGui.QQuaternion, q2: PySide2.QtGui.QQuaternion) -> float [extrait de dotProduct.__doc__]
fromAxes(xAxis: PySide2.QtGui.QVector3D, yAxis: PySide2.QtGui.QVector3D, zAxis: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QQuaternion fromAxes(xAxis: PySide2.QtGui.QVector3D, yAxis: PySide2.QtGui.QVector3D, zAxis: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QQuaternion [extrait de fromAxes.__doc__]
fromAxisAndAngle fromAxisAndAngle(axis: PySide2.QtGui.QVector3D, angle: float) -> PySide2.QtGui.QQuaternion [extrait de fromAxisAndAngle.__doc__]
fromDirection(direction: PySide2.QtGui.QVector3D, up: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QQuaternion fromDirection(direction: PySide2.QtGui.QVector3D, up: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QQuaternion [extrait de fromDirection.__doc__]
fromEulerAngles fromEulerAngles(eulerAngles: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QQuaternion [extrait de fromEulerAngles.__doc__]
fromRotationMatrix(rot3x3: PySide2.QtGui.QMatrix3x3) -> PySide2.QtGui.QQuaternion fromRotationMatrix(rot3x3: PySide2.QtGui.QMatrix3x3) -> PySide2.QtGui.QQuaternion [extrait de fromRotationMatrix.__doc__]
getAxes(self, xAxis: PySide2.QtGui.QVector3D, yAxis: PySide2.QtGui.QVector3D, zAxis: PySide2.QtGui.QVector3D) getAxes(self, xAxis: PySide2.QtGui.QVector3D, yAxis: PySide2.QtGui.QVector3D, zAxis: PySide2.QtGui.QVector3D) [extrait de getAxes.__doc__]
inverted(self) -> PySide2.QtGui.QQuaternion inverted(self) -> PySide2.QtGui.QQuaternion [extrait de inverted.__doc__]
isIdentity(self) -> bool isIdentity(self) -> bool [extrait de isIdentity.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
length(self) -> float length(self) -> float [extrait de length.__doc__]
lengthSquared(self) -> float lengthSquared(self) -> float [extrait de lengthSquared.__doc__]
nlerp(q1: PySide2.QtGui.QQuaternion, q2: PySide2.QtGui.QQuaternion, t: float) -> PySide2.QtGui.QQuaternion nlerp(q1: PySide2.QtGui.QQuaternion, q2: PySide2.QtGui.QQuaternion, t: float) -> PySide2.QtGui.QQuaternion [extrait de nlerp.__doc__]
normalize(self) normalize(self) [extrait de normalize.__doc__]
normalized(self) -> PySide2.QtGui.QQuaternion normalized(self) -> PySide2.QtGui.QQuaternion [extrait de normalized.__doc__]
rotatedVector(self, vector: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QVector3D rotatedVector(self, vector: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QVector3D [extrait de rotatedVector.__doc__]
rotationTo(from_: PySide2.QtGui.QVector3D, to: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QQuaternion rotationTo(from_: PySide2.QtGui.QVector3D, to: PySide2.QtGui.QVector3D) -> PySide2.QtGui.QQuaternion [extrait de rotationTo.__doc__]
scalar(self) -> float scalar(self) -> float [extrait de scalar.__doc__]
setScalar(self, scalar: float) setScalar(self, scalar: float) [extrait de setScalar.__doc__]
setVector setVector(self, vector: PySide2.QtGui.QVector3D) [extrait de setVector.__doc__]
setX(self, x: float) setX(self, x: float) [extrait de setX.__doc__]
setY(self, y: float) setY(self, y: float) [extrait de setY.__doc__]
setZ(self, z: float) setZ(self, z: float) [extrait de setZ.__doc__]
slerp(q1: PySide2.QtGui.QQuaternion, q2: PySide2.QtGui.QQuaternion, t: float) -> PySide2.QtGui.QQuaternion slerp(q1: PySide2.QtGui.QQuaternion, q2: PySide2.QtGui.QQuaternion, t: float) -> PySide2.QtGui.QQuaternion [extrait de slerp.__doc__]
toEulerAngles(self) -> PySide2.QtGui.QVector3D toEulerAngles(self) -> PySide2.QtGui.QVector3D [extrait de toEulerAngles.__doc__]
toRotationMatrix(self) -> PySide2.QtGui.QMatrix3x3 toRotationMatrix(self) -> PySide2.QtGui.QMatrix3x3 [extrait de toRotationMatrix.__doc__]
toVector4D(self) -> PySide2.QtGui.QVector4D toVector4D(self) -> PySide2.QtGui.QVector4D [extrait de toVector4D.__doc__]
vector(self) -> PySide2.QtGui.QVector3D vector(self) -> PySide2.QtGui.QVector3D [extrait de vector.__doc__]
x(self) -> float x(self) -> float [extrait de x.__doc__]
y(self) -> float y(self) -> float [extrait de y.__doc__]
z(self) -> float z(self) -> float [extrait de z.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__, __str__