Skip to content

PythonQt.QtGui.QVector4D · declarations 001

Back to PythonQt.QtGui.QVector4D

dotProduct

dotProduct(v1: Any, v2: Any) -> float

X.dotProduct(v1, v2) -> float

Supplemental documentation: Qt 5 reference:

[static] float QVector4D::dotProduct(const QVector4D \&v1, const QVector4D \&v2)

Returns the dot product of v1 and v2.

Upstream PySide2 reference signatures (binding differences may apply):

dotProduct(v1: PySide2.QtGui.QVector4D, v2: PySide2.QtGui.QVector4D) -> float

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#dotProduct

isNull

isNull() -> bool

X.isNull() -> bool

Supplemental documentation: Qt 5 reference:

bool QVector4D::isNull() const

Returns true if the x, y, z, and w coordinates are set to 0.0, otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isNull(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#isNull

length

length() -> float

X.length() -> float

Supplemental documentation: Qt 5 reference:

float QVector4D::length() const

Returns the length of the vector from the origin.

See also lengthSquared() and normalized().

Upstream PySide2 reference signatures (binding differences may apply):

length(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#length

lengthSquared

lengthSquared() -> float

X.lengthSquared() -> float

Supplemental documentation: Qt 5 reference:

float QVector4D::lengthSquared() const

Returns the squared length of the vector from the origin. This is equivalent to the dot product of the vector with itself.

See also length() and dotProduct().

Upstream PySide2 reference signatures (binding differences may apply):

lengthSquared(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#lengthSquared

normalize

normalize() -> None

X.normalize()

Supplemental documentation: Qt 5 reference:

void QVector4D::normalize()

Normalizes the currect vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1.

See also length() and normalized().

Upstream PySide2 reference signatures (binding differences may apply):

normalize(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#normalize

normalized

normalized() -> Any

X.normalized() -> PythonQt.QtGui.QVector4D

Supplemental documentation: Qt 5 reference:

QVector4D QVector4D::normalized() const

Returns the normalized unit vector form of this vector.

If this vector is null, then a null vector is returned. If the length of the vector is very close to 1, then the vector will be returned as-is. Otherwise the normalized form of the vector of length 1 will be returned.

See also length() and normalize().

Upstream PySide2 reference signatures (binding differences may apply):

normalized(self) -> PySide2.QtGui.QVector4D

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#normalized

setW

setW(w: float) -> None

X.setW(w)

Supplemental documentation: Qt 5 reference:

void QVector4D::setW(float w)

Sets the w coordinate of this point to the given w coordinate.

See also w(), setX(), setY(), and setZ().

Upstream PySide2 reference signatures (binding differences may apply):

setW(self, w: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#setW

setX

setX(x: float) -> None

X.setX(x)

Supplemental documentation: Qt 5 reference:

void QVector4D::setX(float x)

Sets the x coordinate of this point to the given x coordinate.

See also x(), setY(), setZ(), and setW().

Upstream PySide2 reference signatures (binding differences may apply):

setX(self, x: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#setX

setY

setY(y: float) -> None

X.setY(y)

Supplemental documentation: Qt 5 reference:

void QVector4D::setY(float y)

Sets the y coordinate of this point to the given y coordinate.

See also y(), setX(), setZ(), and setW().

Upstream PySide2 reference signatures (binding differences may apply):

setY(self, y: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#setY

setZ

setZ(z: float) -> None

X.setZ(z)

Supplemental documentation: Qt 5 reference:

void QVector4D::setZ(float z)

Sets the z coordinate of this point to the given z coordinate.

See also z(), setX(), setY(), and setW().

Upstream PySide2 reference signatures (binding differences may apply):

setZ(self, z: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#setZ

toPoint

toPoint() -> Any

X.toPoint() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

QPoint QVector4D::toPoint() const

Returns the QPoint form of this 4D vector. The z and w coordinates are dropped.

See also toPointF() and toVector2D().

Upstream PySide2 reference signatures (binding differences may apply):

toPoint(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#toPoint

toPointF

toPointF() -> Any

X.toPointF() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

QPointF QVector4D::toPointF() const

Returns the QPointF form of this 4D vector. The z and w coordinates are dropped.

See also toPoint() and toVector2D().

Upstream PySide2 reference signatures (binding differences may apply):

toPointF(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#toPointF

toVector2D

toVector2D() -> Any

X.toVector2D() -> PythonQt.QtGui.QVector2D

Supplemental documentation: Qt 5 reference:

QVector2D QVector4D::toVector2D() const

Returns the 2D vector form of this 4D vector, dropping the z and w coordinates.

See also toVector2DAffine(), toVector3D(), and toPoint().

Upstream PySide2 reference signatures (binding differences may apply):

toVector2D(self) -> PySide2.QtGui.QVector2D

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#toVector2D

toVector2DAffine

toVector2DAffine() -> Any

X.toVector2DAffine() -> PythonQt.QtGui.QVector2D

Supplemental documentation: Qt 5 reference:

QVector2D QVector4D::toVector2DAffine() const

Returns the 2D vector form of this 4D vector, dividing the x and y coordinates by the w coordinate and dropping the z coordinate. Returns a null vector if w is zero.

See also toVector2D(), toVector3DAffine(), and toPoint().

Upstream PySide2 reference signatures (binding differences may apply):

toVector2DAffine(self) -> PySide2.QtGui.QVector2D

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#toVector2DAffine

toVector3D

toVector3D() -> Any

X.toVector3D() -> PythonQt.QtGui.QVector3D

Supplemental documentation: Qt 5 reference:

QVector3D QVector4D::toVector3D() const

Returns the 3D vector form of this 4D vector, dropping the w coordinate.

See also toVector3DAffine(), toVector2D(), and toPoint().

Upstream PySide2 reference signatures (binding differences may apply):

toVector3D(self) -> PySide2.QtGui.QVector3D

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#toVector3D

toVector3DAffine

toVector3DAffine() -> Any

X.toVector3DAffine() -> PythonQt.QtGui.QVector3D

Supplemental documentation: Qt 5 reference:

QVector3D QVector4D::toVector3DAffine() const

Returns the 3D vector form of this 4D vector, dividing the x, y, and z coordinates by the w coordinate. Returns a null vector if w is zero.

See also toVector3D(), toVector2DAffine(), and toPoint().

Upstream PySide2 reference signatures (binding differences may apply):

toVector3DAffine(self) -> PySide2.QtGui.QVector3D

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#toVector3DAffine

w

w() -> float

X.w() -> float

Supplemental documentation: Qt 5 reference:

float QVector4D::w() const

Returns the w coordinate of this point.

See also setW(), x(), y(), and z().

Upstream PySide2 reference signatures (binding differences may apply):

w(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#w

x

x() -> float

X.x() -> float

Supplemental documentation: Qt 5 reference:

float QVector4D::x() const

Returns the x coordinate of this point.

See also setX(), y(), z(), and w().

Upstream PySide2 reference signatures (binding differences may apply):

x(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#x

y

y() -> float

X.y() -> float

Supplemental documentation: Qt 5 reference:

float QVector4D::y() const

Returns the y coordinate of this point.

See also setY(), x(), z(), and w().

Upstream PySide2 reference signatures (binding differences may apply):

y(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#y

z

z() -> float

X.z() -> float

Supplemental documentation: Qt 5 reference:

float QVector4D::z() const

Returns the z coordinate of this point.

See also setZ(), x(), y(), and w().

Upstream PySide2 reference signatures (binding differences may apply):

z(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qvector4d.html#z