diff options
Diffstat (limited to 'src/2geom/pathvector.cpp')
| -rw-r--r-- | src/2geom/pathvector.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/2geom/pathvector.cpp b/src/2geom/pathvector.cpp index 36364de9b..d2dc468c6 100644 --- a/src/2geom/pathvector.cpp +++ b/src/2geom/pathvector.cpp @@ -126,13 +126,20 @@ OptRect PathVector::boundsExact() const return bound; } +void PathVector::snapEnds(Coord precision) +{ + for (std::size_t i = 0; i < size(); ++i) { + (*this)[i].snapEnds(precision); + } +} + std::vector<PVIntersection> PathVector::intersect(PathVector const &other, Coord precision) const { typedef PathVectorPosition PVPos; std::vector<PVIntersection> result; for (std::size_t i = 0; i < size(); ++i) { for (std::size_t j = 0; j < other.size(); ++j) { - std::vector<PathIntersection> xs = (*this)[i].intersect(other[j]); + std::vector<PathIntersection> xs = (*this)[i].intersect(other[j], precision); for (std::size_t k = 0; k < xs.size(); ++k) { PVIntersection pvx(PVPos(i, xs[k].first), PVPos(j, xs[k].second), xs[k].point()); result.push_back(pvx); |
