]> git.sesse.net Git - kdenlive/blobdiff - src/beziercurve/bpoint.h
Bezier Spline:
[kdenlive] / src / beziercurve / bpoint.h
index 4619dc940b9d425faf3db59749619e112275bf58..388cec2019a984152eaac8685e2b99a29c1d297c 100644 (file)
@@ -33,6 +33,10 @@ public:
     /** @brief Sets up according to the params. Linking detecting is done using autoSetLinked(). */
     BPoint(QPointF handle1, QPointF point, QPointF handle2);
 
+    /** @brief Returns h1 if i = 0, p if i = 1, h2 if i = 2. */
+    QPointF &operator[](int i);
+    /** @brief Returns h1 if i = 0, p if i = 1, h2 if i = 2. */
+    const QPointF &operator[](int i) const;
     bool operator==(const BPoint &point) const;
 
     /** @brief Sets p to @param point.