diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-12-13 19:56:16 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-12-13 19:56:16 +0000 |
| commit | 9d9fc63aac9464b0b642f1818570cf6f6ca601e9 (patch) | |
| tree | db2b45bc112de64ad8fa6018a5b45230ca36ef38 /src/2geom/curve.h | |
| parent | add sketch mode to pencil tool (diff) | |
| download | inkscape-9d9fc63aac9464b0b642f1818570cf6f6ca601e9.tar.gz inkscape-9d9fc63aac9464b0b642f1818570cf6f6ca601e9.zip | |
update to 2geom rev.1723
(bzr r6996)
Diffstat (limited to 'src/2geom/curve.h')
| -rw-r--r-- | src/2geom/curve.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/2geom/curve.h b/src/2geom/curve.h index 08cc2380c..ce1fec3a6 100644 --- a/src/2geom/curve.h +++ b/src/2geom/curve.h @@ -83,6 +83,8 @@ public: virtual int winding(Point p) const { return root_winding(*this, p); } + virtual int degreesOfFreedom() const { return 0;} + //mental: review these virtual Curve *portion(double f, double t) const = 0; virtual Curve *reverse() const { return portion(1, 0); } @@ -133,8 +135,8 @@ public: */ virtual Point unitTangentAt(Coord t, unsigned n = 3) const { - std::vector<Point> derivs = pointAndDerivatives(t, n); - for (unsigned deriv_n = 1; deriv_n < derivs.size(); deriv_n++) { + std::vector<Point> derivs = pointAndDerivatives(t, n); + for (unsigned deriv_n = 1; deriv_n < derivs.size(); deriv_n++) { Coord length = derivs[deriv_n].length(); if ( ! are_near(length, 0) ) { // length of derivative is non-zero, so return unit vector |
