diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-14 15:01:19 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-14 15:01:19 +0000 |
| commit | 4289e1281e707090b4195dcb879cf1532d9ef03a (patch) | |
| tree | 6128d36f89e544e0670a6197f91715dd99e92391 /src/2geom/path.h | |
| parent | fixed another typo (diff) | |
| download | inkscape-4289e1281e707090b4195dcb879cf1532d9ef03a.tar.gz inkscape-4289e1281e707090b4195dcb879cf1532d9ef03a.zip | |
update 2geom
(bzr r5931)
Diffstat (limited to 'src/2geom/path.h')
| -rw-r--r-- | src/2geom/path.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/2geom/path.h b/src/2geom/path.h index 670d4c125..8f51c46c2 100644 --- a/src/2geom/path.h +++ b/src/2geom/path.h @@ -266,6 +266,12 @@ public: return (*this)[i].valueAt(lt, d); } + + Point operator() (double t) const + { + return pointAt(t); + } + std::vector<double> roots(double v, Dim2 d) const { std::vector<double> res; for(unsigned i = 0; i <= size(); i++) { @@ -297,6 +303,9 @@ public: return nearestPoint(_point, 0, sz); } + Rect boundsFast(); + Rect boundsExact(); + void appendPortionTo(Path &p, double f, double t) const; Path portion(double f, double t) const { @@ -543,6 +552,13 @@ inline static Piecewise<D2<SBasis> > paths_to_pw(std::vector<Path> paths) { return ret; } +inline +Coord nearest_point(Point const& p, Path const& c) +{ + return c.nearestPoint(p); +} + + /* class PathPortion : public Curve { Path *source; |
