]> git.sesse.net Git - kdenlive/blobdiff - src/beziercurve/cubicbezierspline.h
Bezier Spline: Allow to link the handles of a point. They will then always remain...
[kdenlive] / src / beziercurve / cubicbezierspline.h
index dc25fb90d6afb779093c181a96178ce3529dcbae..ebf15e3d9f94506cc702a74c2abb9be387384c2a 100644 (file)
 #ifndef CUBICBEZIERSPLINE_H
 #define CUBICBEZIERSPLINE_H
 
+#include "bpoint.h"
 
 #include <QtCore>
 
-class BPoint
-{
-public:
-    QPointF h1;     // handle 1
-    QPointF p;      // point
-    QPointF h2;     // handle 2
-
-    BPoint() { p = QPointF(-1,-1); } // makes it illegal -> cannot be equal any point
-    bool operator==(const BPoint &point) const { return point.h1 == h1 && point.p == p && point.h2 == h2; }
-};
 
 class CubicBezierSpline : public QObject
 {