From 57d418b27cd2f4b75de1672c0a6e58fe2e5546c9 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 25 Jul 2008 21:03:44 +0000 Subject: update to 2geom rev. 1507 (bzr r6416) --- src/2geom/pathvector.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/2geom/pathvector.h') diff --git a/src/2geom/pathvector.h b/src/2geom/pathvector.h index 14d1efdfa..23843c52d 100644 --- a/src/2geom/pathvector.h +++ b/src/2geom/pathvector.h @@ -92,7 +92,16 @@ PathVector reverse_paths_and_order (PathVector const & path_in); Rect bounds_fast( PathVector const & pv ); Rect bounds_exact( PathVector const & pv ); -} + +struct PathVectorPosition { + // pathvector[path_nr].pointAt(t) is the position + unsigned int path_nr; + double t; +}; +PathVectorPosition nearestPoint(PathVector const & path_in, Point const& _point, double *distance_squared = NULL); + + +} // end namespace Geom #endif // SEEN_GEOM_PATHVECTOR_H -- cgit v1.2.3