4#ifndef QQUICKREGULARPOLYGONSHAPE_P_P_H
5#define QQUICKREGULARPOLYGONSHAPE_P_P_H
8#include <QtQml/private/qqmlpropertyutils_p.h>
9#include <QtQuickShapes/private/qquickshape_p_p.h>
29 Q_DECLARE_PUBLIC(QQuickRegularPolygonShape)
32 QQuickRegularPolygonShapePrivate();
33 ~QQuickRegularPolygonShapePrivate() override;
37 void updateBisectors();
38 void constructPolygonPath();
39 void constructRoundedPolygonPath();
41 qreal cornerRadius = 10;
44 std::vector<QVector2D> points;
45 std::vector<QVector2D> bisectors;
47 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.