Use the same precision in PathItem#getIntersections() when handling curve time parameters as in the rest of the library.

TOLERANCE instead of EPSILON.
This commit is contained in:
Jürg Lehni 2015-01-03 20:25:57 +01:00
parent 3e67f72393
commit 68c53534d6

View file

@ -76,7 +76,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
length1 = curves1.length,
length2 = path ? curves2.length : length1,
values2 = [],
tMin = /*#=*/Numerical.EPSILON,
tMin = /*#=*/Numerical.TOLERANCE,
tMax = 1 - tMin;
// First check the bounds of the two paths. If they don't intersect,
// we don't need to iterate through their curves.