5#ifndef QQUICKSTARSHAPE_P_P_H
6#define QQUICKSTARSHAPE_P_P_H
9#include <QtQml/private/qqmlpropertyutils_p.h>
10#include <QtQuickShapes/private/qquickshape_p_p.h>
30 Q_DECLARE_PUBLIC(QQuickStarShape)
33 QQuickStarShapePrivate();
34 ~QQuickStarShapePrivate() override;
38 void constructPolygonPath();
39 void constructRoundedPolygonPath();
41 qreal cornerRadius = 10;
45 std::vector<QVector2D> points;
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.