summaryrefslogtreecommitdiffstats
path: root/src/2geom/path.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-25 21:03:44 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-25 21:03:44 +0000
commit57d418b27cd2f4b75de1672c0a6e58fe2e5546c9 (patch)
treea5b44b406145087d79d14033b080e6918befc0d3 /src/2geom/path.h
parentcopyedit (diff)
downloadinkscape-57d418b27cd2f4b75de1672c0a6e58fe2e5546c9.tar.gz
inkscape-57d418b27cd2f4b75de1672c0a6e58fe2e5546c9.zip
update to 2geom rev. 1507
(bzr r6416)
Diffstat (limited to 'src/2geom/path.h')
-rw-r--r--src/2geom/path.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/2geom/path.h b/src/2geom/path.h
index f391c9c24..ab91038a6 100644
--- a/src/2geom/path.h
+++ b/src/2geom/path.h
@@ -39,7 +39,8 @@
#include <boost/shared_ptr.hpp>
-#include <2geom/curves.h>
+#include <2geom/curve.h>
+#include <2geom/bezier-curve.h>
#include <iterator>
#include <algorithm>
@@ -357,13 +358,13 @@ public:
}
- double nearestPoint(Point const& _point, double from, double to) const;
+ double nearestPoint(Point const& _point, double from, double to, double *distance_squared = NULL) const;
- double nearestPoint(Point const& _point) const
+ double nearestPoint(Point const& _point, double *distance_squared = NULL) const
{
unsigned int sz = size();
if ( closed() ) ++sz;
- return nearestPoint(_point, 0, sz);
+ return nearestPoint(_point, 0, sz, distance_squared);
}
void appendPortionTo(Path &p, double f, double t) const;