#include <qvector2d.h>
Definition at line 60 of file qvector2d.h.
Public Member Functions | |
QVector2D () | |
QVector2D (qreal xpos, qreal ypos) | |
QVector2D (const QPoint &point) | |
QVector2D (const QPointF &point) | |
QVector2D (const QVector3D &vector) | |
QVector2D (const QVector4D &vector) | |
bool | isNull () const |
qreal | x () const |
qreal | y () const |
void | setX (qreal x) |
void | setY (qreal y) |
qreal | length () const |
qreal | lengthSquared () const |
QVector2D | normalized () const |
void | normalize () |
QVector2D & | operator+= (const QVector2D &vector) |
QVector2D & | operator-= (const QVector2D &vector) |
QVector2D & | operator*= (qreal factor) |
QVector2D & | operator*= (const QVector2D &vector) |
QVector2D & | operator/= (qreal divisor) |
QVector3D | toVector3D () const |
QVector4D | toVector4D () const |
QPoint | toPoint () const |
QPointF | toPointF () const |
operator QVariant () const | |
Static Public Member Functions | |
static qreal | dotProduct (const QVector2D &v1, const QVector2D &v2) |
Friends | |
class | QVector3D |
class | QVector4D |
bool | operator== (const QVector2D &v1, const QVector2D &v2) |
bool | operator!= (const QVector2D &v1, const QVector2D &v2) |
const QVector2D | operator+ (const QVector2D &v1, const QVector2D &v2) |
const QVector2D | operator- (const QVector2D &v1, const QVector2D &v2) |
const QVector2D | operator* (qreal factor, const QVector2D &vector) |
const QVector2D | operator* (const QVector2D &vector, qreal factor) |
const QVector2D | operator* (const QVector2D &v1, const QVector2D &v2) |
const QVector2D | operator- (const QVector2D &vector) |
const QVector2D | operator/ (const QVector2D &vector, qreal divisor) |
bool | qFuzzyCompare (const QVector2D &v1, const QVector2D &v2) |
|
inline |
Definition at line 131 of file qvector2d.h.
|
inline |
Definition at line 135 of file qvector2d.h.
Definition at line 137 of file qvector2d.h.
Definition at line 139 of file qvector2d.h.
|
inline |
Definition at line 141 of file qvector2d.h.
|
inline |
Definition at line 146 of file qvector2d.h.
|
inline |
Definition at line 147 of file qvector2d.h.
|
inline |
Definition at line 149 of file qvector2d.h.
|
inline |
Definition at line 150 of file qvector2d.h.
qreal length | ( | ) | const |
qreal lengthSquared | ( | ) | const |
QVector2D normalized | ( | ) | const |
void normalize | ( | ) |
Definition at line 152 of file qvector2d.h.
Definition at line 159 of file qvector2d.h.
|
inline |
Definition at line 166 of file qvector2d.h.
Definition at line 173 of file qvector2d.h.
|
inline |
Definition at line 180 of file qvector2d.h.
QVector3D toVector3D | ( | ) | const |
QVector4D toVector4D | ( | ) | const |
|
inline |
Definition at line 237 of file qvector2d.h.
|
inline |
Definition at line 242 of file qvector2d.h.
operator QVariant | ( | ) | const |
|
friend |
Definition at line 125 of file qvector2d.h.
|
friend |
Definition at line 126 of file qvector2d.h.
Definition at line 187 of file qvector2d.h.
Definition at line 192 of file qvector2d.h.
Definition at line 197 of file qvector2d.h.
Definition at line 202 of file qvector2d.h.
Definition at line 207 of file qvector2d.h.
Definition at line 212 of file qvector2d.h.
Definition at line 217 of file qvector2d.h.
Definition at line 222 of file qvector2d.h.
Definition at line 227 of file qvector2d.h.
Definition at line 232 of file qvector2d.h.