QVector2D Class Reference
Constructor
- void QVector2D()
- void QVector2D(QPoint point)
- void QVector2D(QPointF point)
- void QVector2D(QVector3D vector)
- void QVector2D(QVector4D vector)
- void QVector2D(float xpos, float ypos)
Constructor Properties
- prototype: The QVector2D prototype object
- float dotProduct(QVector2D v1, QVector2D v2)
Prototype Object Properties
- float distanceToLine(QVector2D point, QVector2D direction)
- float distanceToPoint(QVector2D point)
- bool isNull()
- float length()
- float lengthSquared()
- void normalize()
- QVector2D normalized()
- QVector2D operator_add_assign(QVector2D vector)
- QVector2D operator_divide_assign(float divisor)
- bool operator_equal(QVector2D v2)
- QVector2D operator_multiply_assign(QVector2D vector)
- float operator_subscript(int i)
- QVector2D operator_subtract_assign(QVector2D vector)
- void setX(float x)
- void setY(float y)
- QPoint toPoint()
- QPointF toPointF()
- QVector3D toVector3D()
- QVector4D toVector4D()
- float x()
- float y()
Instance Properties
QVector2D objects have no special properties beyond those inherited from the QVector2D prototype object.