From cfa7054c950050095e596edd18fedad53e7ed636 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 28 Apr 2015 19:02:19 -0400 Subject: Fix calls to Geom::cross() - sign change. (bzr r14059.2.2) --- src/2geom/pathvector.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/2geom/pathvector.cpp') 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 PathVector::intersect(PathVector const &other, Coord precision) const { typedef PathVectorPosition PVPos; std::vector result; for (std::size_t i = 0; i < size(); ++i) { for (std::size_t j = 0; j < other.size(); ++j) { - std::vector xs = (*this)[i].intersect(other[j]); + std::vector 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); -- cgit v1.2.3