summaryrefslogtreecommitdiff
path: root/tikzit/src/tikzit.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2017-12-21 16:34:58 +0000
committerAleks Kissinger <aleks0@gmail.com>2017-12-21 16:34:58 +0000
commit9d8317cd593d47911bb6b2e6fb8ef0077e24ae36 (patch)
tree6f2d44782c37f8eaa36f2bb1de625343af65649e /tikzit/src/tikzit.h
parent82bdd42a475d240bb08e201a47b0972d0b2862a6 (diff)
edge bending working
Diffstat (limited to 'tikzit/src/tikzit.h')
-rw-r--r--tikzit/src/tikzit.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/tikzit/src/tikzit.h b/tikzit/src/tikzit.h
index b0e372d..bf4f7f1 100644
--- a/tikzit/src/tikzit.h
+++ b/tikzit/src/tikzit.h
@@ -32,20 +32,6 @@ inline QPointF toScreen(QPointF src)
inline QPointF fromScreen(QPointF src)
{ src.setY(-src.y()); src /= GLOBAL_SCALEF; return src; }
-// interpolate on a cubic bezier curve
-inline float bezierInterpolate(float dist, float c0, float c1, float c2, float c3) {
- float distp = 1 - dist;
- return (distp*distp*distp) * c0 +
- 3 * (distp*distp) * dist * c1 +
- 3 * (dist*dist) * distp * c2 +
- (dist*dist*dist) * c3;
-}
-
-inline QPointF bezierInterpolateFull (float dist, QPointF c0, QPointF c1, QPointF c2, QPointF c3) {
- return QPointF(bezierInterpolate (dist, c0.x(), c1.x(), c2.x(), c3.x()),
- bezierInterpolate (dist, c0.y(), c1.y(), c2.y(), c3.y()));
-}
-
class Tikzit : public QObject {
Q_OBJECT