PythonQt.QtCore.QPointF · declarations 001
Back to PythonQt.QtCore.QPointF
dotProduct
dotProduct(p1: Any, p2: Any) -> float
X.dotProduct(p1, p2) -> float
Supplemental documentation: Qt 5 reference:
[static] qreal QPointF::dotProduct(const QPointF \&p1, const QPointF \&p2)
QPointF p( 3.1, 7.1);
QPointF q(-1.0, 4.1);
int lengthSquared = QPointF::dotProduct(p, q); // lengthSquared becomes 26.01
Returns the dot product of p1 and p2.
This function was introduced in Qt 5.1.
Upstream PySide2 reference signatures (binding differences may apply):
dotProduct(p1: PySide2.QtCore.QPointF, p2: PySide2.QtCore.QPointF) -> float
Source: https://doc.qt.io/archives/qt-5.15/qpointf.html#dotProduct
isNull
isNull() -> bool
X.isNull() -> bool
Supplemental documentation: Qt 5 reference:
bool QPointF::isNull() const
Returns true if both the x and y coordinates are set to 0.0 (ignoring the sign);
otherwise returns false.
Upstream PySide2 reference signatures (binding differences may apply):
isNull(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpointf.html#isNull
manhattanLength
manhattanLength() -> float
X.manhattanLength() -> float
Supplemental documentation: Qt 5 reference:
qreal QPointF::manhattanLength() const
Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" of the vector from the origin to the point.
This function was introduced in Qt 4.6.
See also QPoint::manhattanLength().
Upstream PySide2 reference signatures (binding differences may apply):
manhattanLength(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qpointf.html#manhattanLength
setX
setX(x: float) -> None
X.setX(x)
Supplemental documentation: Qt 5 reference:
void QPointF::setX(qreal x)
Sets the x coordinate of this point to the given x coordinate.
Upstream PySide2 reference signatures (binding differences may apply):
setX(self, x: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpointf.html#setX
setY
setY(y: float) -> None
X.setY(y)
Supplemental documentation: Qt 5 reference:
void QPointF::setY(qreal y)
Sets the y coordinate of this point to the given y coordinate.
Upstream PySide2 reference signatures (binding differences may apply):
setY(self, y: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpointf.html#setY
toPoint
toPoint() -> Any
X.toPoint() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
QPoint QPointF::toPoint() const
Rounds the coordinates of this point to the nearest integer, and returns a QPoint object with the rounded coordinates.
See also QPointF().
Upstream PySide2 reference signatures (binding differences may apply):
toPoint(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qpointf.html#toPoint
x
x() -> float
y
y() -> float