1398 Vertex delta = { b.x - a.x, b.y - a.y };
1400 if (delta.x == 0 && delta.y == 0)
1411 Vertex topLeft = { a.x - halfWidth, a.y };
1412 Vertex topRight = { a.x + halfWidth, a.y };
1413 Vertex bottomLeft = { a.x - halfWidth, b.y };
1414 Vertex bottomRight = { a.x + halfWidth, b.y };
1418 }
else if (delta.y == 0) {
1427 Vertex topLeft = { a.x, a.y - halfWidth };
1428 Vertex topRight = { b.x, a.y - halfWidth };
1429 Vertex bottomLeft = { a.x, a.y + halfWidth };
1430 Vertex bottomRight = { b.x, a.y + halfWidth };
1442 perp *= hw / length;
The QPointF class defines a point in the plane using floating point precision.
#define FloatToQ27Dot5(i)
qreal x() const
Returns the x-coordinate of this point.
void qSwap(T &value1, T &value2)
qreal y() const
Returns the y-coordinate of this point.
static Q_DECL_CONSTEXPR bool qFuzzyIsNull(double d)
virtual void addTrap(const Trapezoid &trap)=0