Minor code cleanup.

This commit is contained in:
Jürg Lehni 2017-01-15 18:53:23 +01:00
parent 77cb04154a
commit 12f12da21b

View file

@ -327,9 +327,9 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
// necessary to avoid issues wit CURVETIME_EPSILON imprecisions.
var abs = Math.abs,
epsilon = /*#=*/Numerical.GEOMETRIC_EPSILON,
diff = abs(this.getOffset() - loc.getOffset()),
i1 = !_ignoreOther && this._intersection,
i2 = !_ignoreOther && loc._intersection,
diff = abs(this.getOffset() - loc.getOffset());
i2 = !_ignoreOther && loc._intersection;
res = (diff < epsilon
|| p1 && abs(p1.getLength() - diff) < epsilon)
// Compare the the other location, but prevent endless
@ -360,7 +360,6 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
return '{ ' + parts.join(', ') + ' }';
},
/**
* {@grouptitle Tests}
* Checks if the location is an intersection with another curve and is