#include <qpoint.h>
Definition at line 53 of file qpoint.h.
|
class | QTransform |
|
bool | operator== (const QPoint &, const QPoint &) |
|
bool | operator!= (const QPoint &, const QPoint &) |
|
const QPoint | operator+ (const QPoint &, const QPoint &) |
|
const QPoint | operator- (const QPoint &, const QPoint &) |
|
const QPoint | operator* (const QPoint &, float) |
|
const QPoint | operator* (float, const QPoint &) |
|
const QPoint | operator* (const QPoint &, double) |
|
const QPoint | operator* (double, const QPoint &) |
|
const QPoint | operator* (const QPoint &, int) |
|
const QPoint | operator* (int, const QPoint &) |
|
const QPoint | operator- (const QPoint &) |
|
const QPoint | operator/ (const QPoint &, qreal) |
|
Definition at line 122 of file qpoint.h.
123 { xp = xpos; yp = ypos; }
Definition at line 125 of file qpoint.h.
126 {
return xp == 0 && yp == 0; }
int manhattanLength |
( |
| ) |
const |
Definition at line 146 of file qpoint.h.
147 { xp+=p.xp; yp+=p.yp;
return *
this; }
Definition at line 149 of file qpoint.h.
150 { xp-=p.xp; yp-=p.yp;
return *
this; }
QPoint & operator*= |
( |
float |
c | ) |
|
|
inline |
Definition at line 152 of file qpoint.h.
153 { xp = qRound(xp*
c); yp = qRound(yp*
c);
return *
this; }
QPoint & operator*= |
( |
double |
c | ) |
|
|
inline |
Definition at line 155 of file qpoint.h.
156 { xp = qRound(xp*
c); yp = qRound(yp*
c);
return *
this; }
Definition at line 158 of file qpoint.h.
159 { xp = xp*
c; yp = yp*
c;
return *
this; }
QPoint & operator/= |
( |
qreal |
c | ) |
|
|
inline |
Definition at line 161 of file qpoint.h.
162 {
return p1.xp == p2.xp && p1.yp == p2.yp; }
Definition at line 164 of file qpoint.h.
165 {
return p1.xp != p2.xp || p1.yp != p2.yp; }
Definition at line 167 of file qpoint.h.
168 {
return QPoint(p1.xp+p2.xp, p1.yp+p2.yp); }
Definition at line 170 of file qpoint.h.
171 {
return QPoint(p1.xp-p2.xp, p1.yp-p2.yp); }
Definition at line 173 of file qpoint.h.
174 {
return QPoint(qRound(p.xp*
c), qRound(p.yp*
c)); }
Definition at line 182 of file qpoint.h.
183 {
return QPoint(qRound(p.xp*
c), qRound(p.yp*
c)); }
Definition at line 176 of file qpoint.h.
177 {
return QPoint(qRound(p.xp*
c), qRound(p.yp*
c)); }
Definition at line 185 of file qpoint.h.
186 {
return QPoint(qRound(p.xp*
c), qRound(p.yp*
c)); }
The documentation for this class was generated from the following file: