PythonQt.QtGui.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 |
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 |
normalize |
function | (self) -> None |
Normalizes the currect vector in place. |
normalized |
function | (self) -> Any |
X.normalized() -> PythonQt.QtGui.QVector2D |
operator_subscript |
function | (self, i: Any) -> float |
X.operator_subscript(i) -> float |
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. |
toPoint |
function | (self) -> Any |
X.toPoint() -> PythonQt.QtCore.QPoint |
toPointF |
function | (self) -> Any |
X.toPointF() -> PythonQt.QtCore.QPointF |
toVector3D |
function | (self) -> Any |
X.toVector3D() -> PythonQt.QtGui.QVector3D |
toVector4D |
function | (self) -> Any |
X.toVector4D() -> PythonQt.QtGui.QVector4D |
writeTo |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
x |
function | (self) -> float |
X.x() -> float |
y |
function | (self) -> float |
X.y() -> float |