PythonQt.Qt.QVector2D
QVector2D
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
The QVector2D class can also be used to represent vertices in 2D space. We therefore do not need to provide a separate vertex class.
Source: https://doc.qt.io/archives/qt-5.15/qvector2d.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) |
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 (shared captured text) |
distanceToPoint |
function | (self, point: Any) -> float |
X.distanceToPoint(point) -> float (shared captured text) |
dotProduct |
function | (self, v1: Any, v2: Any) -> float |
X.dotProduct(v1, v2) -> float (shared captured text) |
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 (shared captured text) |
length |
function | (self) -> float |
X.length() -> float (shared captured text) |
lengthSquared |
function | (self) -> float |
X.lengthSquared() -> float (shared captured text) |
normalize |
function | (self) -> None |
Normalizes the currect vector in place. (shared captured text) |
normalized |
function | (self) -> Any |
X.normalized() -> PythonQt.QtGui.QVector2D (shared captured text) |
operator_subscript |
function | (self, i: Any) -> float |
X.operator_subscript(i) -> float (shared captured text) |
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. (shared captured text) |
setY |
function | (self, y: float) -> None |
Sets the y coordinate of this point to the given y coordinate. (shared captured text) |
toPoint |
function | (self) -> Any |
X.toPoint() -> PythonQt.QtCore.QPoint (shared captured text) |
toPointF |
function | (self) -> Any |
X.toPointF() -> PythonQt.QtCore.QPointF (shared captured text) |
toVector3D |
function | (self) -> Any |
X.toVector3D() -> PythonQt.QtGui.QVector3D (shared captured text) |
toVector4D |
function | (self) -> Any |
X.toVector4D() -> PythonQt.QtGui.QVector4D (shared captured text) |
writeTo |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
x |
function | (self) -> float |
X.x() -> float (shared captured text) |
y |
function | (self) -> float |
X.y() -> float (shared captured text) |