Detailed Description
Definition at line 188 of file qpoint.h.
#include <qpoint.h>
List of all
members.
Constructor & Destructor Documentation
Definition at line 249 of file qpoint.h.
: xp(p.x()), yp(p.y()) { }
| QPointF |
( |
qreal |
xpos, |
|
|
qreal |
ypos |
|
) |
|
[inline] |
Member Function Documentation
| qreal manhattanLength |
( |
|
) |
const |
| bool isNull |
( |
|
) |
const [inline] |
Definition at line 251 of file qpoint.h.
{
return qIsNull(xp) && qIsNull(yp);
}
| qreal x |
( |
|
) |
const [inline] |
| qreal y |
( |
|
) |
const [inline] |
| void setX |
( |
qreal |
x |
) |
[inline] |
| void setY |
( |
qreal |
y |
) |
[inline] |
Definition at line 286 of file qpoint.h.
{
xp+=p.xp;
yp+=p.yp;
return *this;
}
Definition at line 293 of file qpoint.h.
{
xp-=p.xp; yp-=p.yp; return *this;
}
| QPointF & operator*= |
( |
qreal |
c |
) |
[inline] |
Definition at line 298 of file qpoint.h.
{
xp*=c; yp*=c; return *this;
}
| QPointF & operator/= |
( |
qreal |
c |
) |
[inline] |
Definition at line 338 of file qpoint.h.
{
xp/=c;
yp/=c;
return *this;
}
| QPoint toPoint |
( |
|
) |
const [inline] |
Friends And Related Function Documentation
Definition at line 303 of file qpoint.h.
{
return qFuzzyIsNull(p1.xp - p2.xp) && qFuzzyIsNull(p1.yp - p2.yp);
}
Definition at line 308 of file qpoint.h.
{
return !qFuzzyIsNull(p1.xp - p2.xp) || !qFuzzyIsNull(p1.yp - p2.yp);
}
The documentation for this class was generated from the following
file: