5#ifndef QQUICKREGULARPOLYGONSHAPE_P_P_H
6#define QQUICKREGULARPOLYGONSHAPE_P_P_H
9#include <QtQml/private/qqmlpropertyutils_p.h>
10#include <QtQuickShapes/private/qquickshape_p_p.h>
30 Q_DECLARE_PUBLIC(QQuickRegularPolygonShape)
33 QQuickRegularPolygonShapePrivate();
34 ~QQuickRegularPolygonShapePrivate() override;
38 void updateBisectors();
39 void constructPolygonPath();
40 void constructRoundedPolygonPath();
42 qreal cornerRadius = 10;
45 std::vector<QVector2D> points;
46 std::vector<QVector2D> bisectors;
48 QQuickShapePath *path =
nullptr;
The QVector2D class represents a vector or vertex in 2D space.
constexpr float y() const noexcept
Returns the y coordinate of this point.
QVector2D normalized() const noexcept
Returns the normalized unit vector form of this vector.
constexpr float x() const noexcept
Returns the x coordinate of this point.
static constexpr float dotProduct(QVector2D v1, QVector2D v2) noexcept
Returns the dot product of v1 and v2.