Skip to content

PythonQt.QtGui.QVector3D

QVector3D

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

Vectors are one of the main building blocks of 3D representation and drawing. They consist of three coordinates, traditionally called x, y, and z.

The QVector3D class can also be used to represent vertices in 3D space. We therefore do not need to provide a separate vertex class.

Source: https://doc.qt.io/archives/qt-5.15/qvector3d.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)
crossProduct function (self, v1: Any, v2: Any) -> Any X.crossProduct(v1, v2) -> PythonQt.QtGui.QVector3D
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
distanceToLine function (self, point: Any, direction: Any) -> float X.distanceToLine(point, direction) -> float
distanceToPlane function (self, plane1: Any, plane2: Any, plane3: Any) -> float X.distanceToPlane(plane1, plane2, plane3) -> float
distanceToPoint function (self, point: Any) -> float X.distanceToPoint(point) -> float
dotProduct function (self, v1: Any, v2: Any) -> float X.dotProduct(v1, v2) -> float
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)
isNull function (self) -> bool X.isNull() -> bool
length function (self) -> float X.length() -> float
lengthSquared function (self) -> float X.lengthSquared() -> float
normal function (self, v1: Any, v2: Any, v3: Any) -> Any X.normal(v1, v2, v3) -> PythonQt.QtGui.QVector3D
normalize function (self) -> None Normalizes the currect vector in place.
normalized function (self) -> Any X.normalized() -> PythonQt.QtGui.QVector3D
operator_subscript function (self, i: Any) -> float X.operator_subscript(i) -> float (shared captured text)
project function (self, modelView: Any, projection: Any, viewport: Any) -> Any X.project(modelView, projection, viewport) -> PythonQt.QtGui.QVector3D
readFrom function (self, arg__1: Any) -> Any (shared captured text)
setX function (self, x: float) -> None Sets the x coordinate of this point to the given x coordinate.
setY function (self, y: float) -> None Sets the y coordinate of this point to the given y coordinate.
setZ function (self, z: float) -> None Sets the z coordinate of this point to the given z coordinate.
toPoint function (self) -> Any X.toPoint() -> PythonQt.QtCore.QPoint
toPointF function (self) -> Any X.toPointF() -> PythonQt.QtCore.QPointF
toVector2D function (self) -> Any X.toVector2D() -> PythonQt.QtGui.QVector2D
toVector4D function (self) -> Any X.toVector4D() -> PythonQt.QtGui.QVector4D
unproject function (self, modelView: Any, projection: Any, viewport: Any) -> Any X.unproject(modelView, projection, viewport) -> 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