Skip to content

Commit

Permalink
Compare points instead of curve time paramters for better precision a…
Browse files Browse the repository at this point in the history
…nd reliability.
  • Loading branch information
lehni committed Sep 21, 2015
1 parent e36319b commit 812ac63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/path/CurveLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
|| loc instanceof CurveLocation
// Call getCurve() and getParameter() to keep in sync
&& this.getCurve() === loc.getCurve()
&& Math.abs(this.getParameter() - loc.getParameter())
< /*#=*/Numerical.CURVETIME_EPSILON
&& this.getPoint().isClose(loc.getPoint(),
/*#=*/Numerical.GEOMETRIC_EPSILON)
&& (_ignoreOther
|| (!this._intersection && !loc._intersection
|| this._intersection && this._intersection.equals(
Expand Down

0 comments on commit 812ac63

Please sign in to comment.