A 2D floating-point point extending QPointF with movement and spatial query methods.
More...
|
| | Point () |
| | Default constructor — creates a point at the origin.
|
| |
| | Point (const QPointF &other) |
| | Construct from a QPointF.
|
| |
| | Point (const QPoint &other) |
| | Construct from a QPoint (integer coordinates).
|
| |
| | Point (double x, double y) |
| | Construct from explicit X and Y coordinates.
|
| |
| bool | isLeftOf (const QPointF &other) const |
| | Test whether this point is to the left of other (smaller X).
|
| |
| bool | isRightOf (const QPointF &other) const |
| | Test whether this point is to the right of other (larger X).
|
| |
| bool | isAbove (const QPointF &other) const |
| | Test whether this point is above other (smaller Y).
|
| |
| bool | isBelow (const QPointF &other) const |
| | Test whether this point is below other (larger Y).
|
| |
| Point & | move (Geo::Direction direction, double amount) |
| | Move this point in a cardinal direction by the given amount.
|
| |
| Point & | move (double bearing, double distance) |
| | Move this point by a bearing and distance.
|
| |
| Point & | moveDelta (double dx, double dy) |
| | Translate this point by a (dx, dy) delta.
|
| |
| Point & | round () |
| | Round both coordinates to the nearest integer in place.
|
| |
| Point & | offset (double x, double y) |
| | Offset this point by the given (x, y) amounts.
|
| |
| Point | delta (const Point &other) const |
| | Compute the (dx, dy) vector from this point to another.
|
| |
| QString | toString () const |
| | Format this point as "x, y".
|
| |
A 2D floating-point point extending QPointF with movement and spatial query methods.
Extends QPointF with movement transforms, string conversion, and a list subclass.
Definition at line 15 of file point.h.