#include "QtGui/qpainterpath.h"
#include "QtGui/qregion.h"
#include "QtCore/qlist.h"
#include "QtCore/qvarlengtharray.h"
#include <qdebug.h>
#include <private/qvectorpath_p.h>
#include <private/qstroker_p.h>
Go to the source code of this file.
◆ KAPPA
#define KAPPA qreal(0.5522847498) |
◆ qt_find_ellipse_coords()
Definition at line 97 of file qpainterpath.cpp.
Referenced by QVectorPath::convertToPainterPath().
112 QPointF *points[2] = { startPoint, endPoint };
114 for (
int i = 0; i < 2; ++i) {
118 qreal theta = angles[i] - 360 *
qFloor(angles[i] / 360);
119 qreal t = theta / 90;
121 int quadrant = int(t);
135 if (quadrant == 1 || quadrant == 2)
139 if (quadrant == 0 || quadrant == 1)
The QPointF class defines a point in the plane using floating point precision.
static void coefficients(qreal t, qreal &a, qreal &b, qreal &c, qreal &d)
long ASN1_INTEGER_get ASN1_INTEGER * a
qreal qt_t_for_arc_angle(qreal angle)
qreal height() const
Returns the height of the rectangle.
qreal width() const
Returns the width of the rectangle.
qreal angle(const QPointF &p1, const QPointF &p2)
QPointF center() const
Returns the center point of the rectangle.
bool isNull() const
Returns true if the rectangle is a null rectangle, otherwise returns false.