|
| static double | vectorAngle (const Line &l1, const Line &l2) |
| | Compute the signed vector angle between two lines.
|
| |
| static Angle | angle (const Line &l1, const Line &l2) |
| | Compute the angle between two lines as an Angle object.
|
| |
| static Angle | angle (const QPointF &p1, const QPointF &vertex, const QPointF &p2) |
| | Compute the angle at a vertex formed by two rays.
|
| |
| static double | distance (const QPointF &p1, const QPointF &p2) |
| | Compute the Euclidean distance between two points.
|
| |
| static double | degrees (double angle) |
| | Convert radians to degrees.
|
| |
| static double | radians (double angle) |
| | Convert degrees to radians.
|
| |
| static double | angularDifference (const Line &l1, const Line &l2) |
| | Compute the absolute angular difference between two lines.
|
| |
| static Point | getPoint (const QPointF &from, double bearing, double distance) |
| | Compute a point at a given bearing and distance from a source point.
|
| |
| static QPointF | intersection (const Line &l1, const Line &l2) |
| | Compute the intersection point of two lines.
|
| |
| static bool | isInCircle (const QPointF &point, const Circle &circle) |
| | Test whether a point lies within a circle.
|
| |
| static void | getLineABC (const Line &line, double &a, double &b, double &c) |
| | Compute the A, B, C coefficients of the line equation Ax + By + C = 0.
|
| |
| static QPointF | move (const QPointF &point, double bearing, double distance) |
| | Move a point by a given bearing and distance.
|
| |
| static QPointF | rotate (const QPointF &point, const QPointF ¢roid, double angle) |
| | Rotate a point around a centroid by an angle.
|
| |
| static bool | arePointsEqual (const QPointF &p1, const QPointF &p2, int precision=0) |
| | Test whether two points are equal within a given precision.
|
| |
| static bool | isPointLeftOf (const QPointF &point, const QPointF &other) |
| | Test whether point is to the left of other (smaller X).
|
| |
| static bool | isPointRightOf (const QPointF &point, const QPointF &other) |
| | Test whether point is to the right of other (larger X).
|
| |
| static bool | isPointAbove (const QPointF &point, const QPointF &other) |
| | Test whether point is above other (smaller Y).
|
| |
| static bool | isPointBelow (const QPointF &point, const QPointF &other) |
| | Test whether point is below other (larger Y).
|
| |
| static bool | isRectLeftOf (const QRectF &rect, const QPointF &other) |
| | Test whether rect's right edge is left of other.
|
| |
| static bool | isRectRightOf (const QRectF &rect, const QPointF &other) |
| | Test whether rect's left edge is right of other.
|
| |
| static bool | isRectAbove (const QRectF &rect, const QPointF &other) |
| | Test whether rect's bottom edge is above other.
|
| |
| static bool | isRectBelow (const QRectF &rect, const QPointF &other) |
| | Test whether rect's top edge is below other.
|
| |
| static bool | isRectLeftOf (const QRectF &rect, const QRectF &other) |
| | Test whether other is to the left of rect.
|
| |
| static bool | isRectRightOf (const QRectF &rect, const QRectF &other) |
| | Test whether other is to the right of rect.
|
| |
| static bool | isRectAbove (const QRectF &rect, const QRectF &other) |
| | Test whether other is above rect.
|
| |
| static bool | isRectBelow (const QRectF &rect, const QRectF &other) |
| | Test whether other is below rect.
|
| |
| static Geo::SpatialRelationship | relationTo (const QPointF &origin, const QPointF &other) |
| | Determine the spatial relationship of a point relative to an origin point.
|
| |
| static Geo::SpatialRelationship | relationTo (const QRectF &origin, const QPointF &other) |
| | Determine the spatial relationship of a point relative to a rectangle.
|
| |
| static Geo::SpatialRelationship | relationTo (const QPointF &origin, const QRectF &other) |
| | Determine the spatial relationship of a rectangle relative to an origin point.
|
| |
| static Geo::SpatialRelationship | relationTo (const QRectF &origin, const QRectF &other) |
| | Determine the spatial relationship between two rectangles.
|
| |
| static QString | makePointString (const QPoint &p) |
| | Format an integer point as a comma-separated string.
|
| |
| static QString | makePointString (const QPointF &p) |
| | Format a floating-point point as a comma-separated string.
|
| |
Static helper methods for 2D (flat / Cartesian) geometric computations.
All coordinates use Qt's screen coordinate system where Y increases downward. Angles are in degrees unless otherwise specified.
Definition at line 22 of file flatgeo.h.