Initial commit

This commit is contained in:
2024-04-07 19:10:02 +08:00
commit ae53389035
53 changed files with 13226 additions and 0 deletions

18
smoothcurvecreator.h Executable file
View File

@@ -0,0 +1,18 @@
#ifndef SMOOTHCURVECREATOR_H
#define SMOOTHCURVECREATOR_H
#include <QList>
#include <QPointF>
#include <QPainterPath>
class SmoothCurveCreator
{
public:
static QPainterPath createSmoothCurve(const QVector<QPointF> &points);
private:
static void calculateFirstControlPoints(double *&result, const double *rhs, int n);
static void calculateControlPoints(const QVector<QPointF> &knots, QVector<QPointF> *firstControlPoints, QVector<QPointF> *secondControlPoints);
};
#endif // SMOOTHCURVECREATOR_H