diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-25 21:03:44 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-25 21:03:44 +0000 |
| commit | 57d418b27cd2f4b75de1672c0a6e58fe2e5546c9 (patch) | |
| tree | a5b44b406145087d79d14033b080e6918befc0d3 /src/2geom/pathvector.h | |
| parent | copyedit (diff) | |
| download | inkscape-57d418b27cd2f4b75de1672c0a6e58fe2e5546c9.tar.gz inkscape-57d418b27cd2f4b75de1672c0a6e58fe2e5546c9.zip | |
update to 2geom rev. 1507
(bzr r6416)
Diffstat (limited to 'src/2geom/pathvector.h')
| -rw-r--r-- | src/2geom/pathvector.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
