4#ifndef QQUICKSTARSHAPE_P_P_H
5#define QQUICKSTARSHAPE_P_P_H
8#include <QtQml/private/qqmlpropertyutils_p.h>
9#include <QtQuickShapes/private/qquickshape_p_p.h>
29 Q_DECLARE_PUBLIC(QQuickStarShape)
32 QQuickStarShapePrivate();
33 ~QQuickStarShapePrivate() override;
37 void constructPolygonPath();
38 void constructRoundedPolygonPath();
40 qreal cornerRadius = 10;
44 std::vector<QVector2D> points;
46 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.