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 « PySide6.QtGui »

Classe « QVector2D »

Informations générales

Héritage

builtins.object
    Object
        QVector2D

Définition

class QVector2D(Object):

Description [extrait de QVector2D.__doc__]

QVector2D(self) -> None
QVector2D(self, point: PySide6.QtCore.QPoint) -> None
QVector2D(self, point: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element]) -> None
QVector2D(self, vector: PySide6.QtGui.QVector3D) -> None
QVector2D(self, vector: PySide6.QtGui.QVector4D) -> None
QVector2D(self, xpos: float, ypos: float) -> None

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__]

Liste des opérateurs

Signature de l'opérateur Description
__add__(self, v2: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D __add__(self, v2: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D [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, vector: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D __iadd__(self, vector: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D [extrait de __iadd__.__doc__]
__imul__ __imul__(self, factor: float) -> PySide6.QtGui.QVector2D [extrait de __imul__.__doc__]
__isub__(self, vector: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D __isub__(self, vector: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D [extrait de __isub__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__mul__ __mul__(self, factor: float) -> PySide6.QtGui.QVector2D [extrait de __mul__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__neg__(self) -> PySide6.QtGui.QVector2D __neg__(self) -> PySide6.QtGui.QVector2D [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: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.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, v2: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D __sub__(self, v2: PySide6.QtGui.QVector2D) -> PySide6.QtGui.QVector2D [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__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
distanceToLine(self, point: PySide6.QtGui.QVector2D, direction: PySide6.QtGui.QVector2D) -> float distanceToLine(self, point: PySide6.QtGui.QVector2D, direction: PySide6.QtGui.QVector2D) -> float [extrait de distanceToLine.__doc__]
distanceToPoint(self, point: PySide6.QtGui.QVector2D) -> float distanceToPoint(self, point: PySide6.QtGui.QVector2D) -> float [extrait de distanceToPoint.__doc__]
dotProduct(v1: PySide6.QtGui.QVector2D, v2: PySide6.QtGui.QVector2D) -> float dotProduct(v1: PySide6.QtGui.QVector2D, v2: PySide6.QtGui.QVector2D) -> float [extrait de dotProduct.__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__]
normalize(self) -> None normalize(self) -> None [extrait de normalize.__doc__]
normalized(self) -> PySide6.QtGui.QVector2D normalized(self) -> PySide6.QtGui.QVector2D [extrait de normalized.__doc__]
setX(self, x: float) -> None setX(self, x: float) -> None [extrait de setX.__doc__]
setY(self, y: float) -> None setY(self, y: float) -> None [extrait de setY.__doc__]
toPoint(self) -> PySide6.QtCore.QPoint toPoint(self) -> PySide6.QtCore.QPoint [extrait de toPoint.__doc__]
toPointF(self) -> PySide6.QtCore.QPointF toPointF(self) -> PySide6.QtCore.QPointF [extrait de toPointF.__doc__]
toTuple(self) -> object toTuple(self) -> object [extrait de toTuple.__doc__]
toVector3D(self) -> PySide6.QtGui.QVector3D toVector3D(self) -> PySide6.QtGui.QVector3D [extrait de toVector3D.__doc__]
toVector4D(self) -> PySide6.QtGui.QVector4D toVector4D(self) -> PySide6.QtGui.QVector4D [extrait de toVector4D.__doc__]
x(self) -> float x(self) -> float [extrait de x.__doc__]
y(self) -> float y(self) -> float [extrait de y.__doc__]

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

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

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

__dir__, __format__, __hash__, __reduce_ex__, __sizeof__, __str__