QVector4D Class Reference
#include <qvector4d.h>
Definition at line 60 of file qvector4d.h.
|
class | QVector2D |
|
class | QVector3D |
|
bool | operator== (const QVector4D &v1, const QVector4D &v2) |
|
bool | operator!= (const QVector4D &v1, const QVector4D &v2) |
|
const QVector4D | operator+ (const QVector4D &v1, const QVector4D &v2) |
|
const QVector4D | operator- (const QVector4D &v1, const QVector4D &v2) |
|
const QVector4D | operator* (qreal factor, const QVector4D &vector) |
|
const QVector4D | operator* (const QVector4D &vector, qreal factor) |
|
const QVector4D | operator* (const QVector4D &v1, const QVector4D &v2) |
|
const QVector4D | operator- (const QVector4D &vector) |
|
const QVector4D | operator/ (const QVector4D &vector, qreal divisor) |
|
bool | qFuzzyCompare (const QVector4D &v1, const QVector4D &v2) |
|
QVector4D | operator* (const QVector4D &vector, const QMatrix4x4 &matrix) |
|
QVector4D | operator* (const QMatrix4x4 &matrix, const QVector4D &vector) |
|
Definition at line 143 of file qvector4d.h.
143 : xp(0.0
f), yp(0.0
f), zp(0.0
f), wp(0.0
f) {}
QVector4D |
( |
qreal |
xpos, |
|
|
qreal |
ypos, |
|
|
qreal |
zpos, |
|
|
qreal |
wpos |
|
) |
| |
|
inline |
Definition at line 145 of file qvector4d.h.
145 : xp(xpos), yp(ypos), zp(zpos), wp(wpos) {}
Definition at line 149 of file qvector4d.h.
149 : xp(point.
x()), yp(point.
y()), zp(0.0
f), wp(0.0
f) {}
Definition at line 151 of file qvector4d.h.
151 : xp(point.
x()), yp(point.
y()), zp(0.0
f), wp(0.0
f) {}
Definition at line 153 of file qvector4d.h.
155 return qIsNull(xp) && qIsNull(yp) && qIsNull(zp) && qIsNull(wp);
qreal lengthSquared |
( |
| ) |
const |
Definition at line 204 of file qvector4d.h.
GLXDrawable int64_t int64_t divisor
Definition at line 213 of file qvector4d.h.
215 return v1.xp == v2.xp && v1.yp == v2.yp && v1.zp == v2.zp && v1.wp == v2.wp;
Definition at line 218 of file qvector4d.h.
220 return v1.xp != v2.xp || v1.yp != v2.yp || v1.zp != v2.zp || v1.wp != v2.wp;
Definition at line 223 of file qvector4d.h.
225 return QVector4D(v1.xp + v2.xp, v1.yp + v2.yp, v1.zp + v2.zp, v1.wp + v2.wp, 1);
Definition at line 228 of file qvector4d.h.
230 return QVector4D(v1.xp - v2.xp, v1.yp - v2.yp, v1.zp - v2.zp, v1.wp - v2.wp, 1);
Definition at line 233 of file qvector4d.h.
235 return QVector4D(vector.xp * factor, vector.yp * factor, vector.zp * factor, vector.wp * factor, 1);
Definition at line 238 of file qvector4d.h.
240 return QVector4D(vector.xp * factor, vector.yp * factor, vector.zp * factor, vector.wp * factor, 1);
Definition at line 243 of file qvector4d.h.
245 return QVector4D(v1.xp * v2.xp, v1.yp * v2.yp, v1.zp * v2.zp, v1.wp * v2.wp, 1);
Definition at line 248 of file qvector4d.h.
250 return QVector4D(-vector.xp, -vector.yp, -vector.zp, -vector.wp, 1);
Definition at line 253 of file qvector4d.h.
GLXDrawable int64_t int64_t divisor
Definition at line 258 of file qvector4d.h.
friend bool qFuzzyCompare(const QVector4D &v1, const QVector4D &v2)
Definition at line 677 of file qmatrix4x4.h.
680 x = vector.
x() * matrix.m[0][0] +
681 vector.
y() * matrix.m[0][1] +
682 vector.
z() * matrix.m[0][2] +
683 vector.
w() * matrix.m[0][3];
684 y = vector.
x() * matrix.m[1][0] +
685 vector.
y() * matrix.m[1][1] +
686 vector.
z() * matrix.m[1][2] +
687 vector.
w() * matrix.m[1][3];
688 z = vector.
x() * matrix.m[2][0] +
689 vector.
y() * matrix.m[2][1] +
690 vector.
z() * matrix.m[2][2] +
691 vector.
w() * matrix.m[2][3];
692 w = vector.
x() * matrix.m[3][0] +
693 vector.
y() * matrix.m[3][1] +
694 vector.
z() * matrix.m[3][2] +
695 vector.
w() * matrix.m[3][3];
Definition at line 699 of file qmatrix4x4.h.
702 x = vector.
x() * matrix.m[0][0] +
703 vector.
y() * matrix.m[1][0] +
704 vector.
z() * matrix.m[2][0] +
705 vector.
w() * matrix.m[3][0];
706 y = vector.
x() * matrix.m[0][1] +
707 vector.
y() * matrix.m[1][1] +
708 vector.
z() * matrix.m[2][1] +
709 vector.
w() * matrix.m[3][1];
710 z = vector.
x() * matrix.m[0][2] +
711 vector.
y() * matrix.m[1][2] +
712 vector.
z() * matrix.m[2][2] +
713 vector.
w() * matrix.m[3][2];
714 w = vector.
x() * matrix.m[0][3] +
715 vector.
y() * matrix.m[1][3] +
716 vector.
z() * matrix.m[2][3] +
717 vector.
w() * matrix.m[3][3];
The documentation for this class was generated from the following file: