Skip to content

Commit

Permalink
Improve CurveLocation#equals()
Browse files Browse the repository at this point in the history
Relates to #784, described in #784 (comment)
  • Loading branch information
lehni committed Sep 30, 2015
1 parent 4e9bac1 commit 2a7d1c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/path/CurveLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,10 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
|| loc instanceof CurveLocation
// Call getCurve() and getParameter() to keep in sync
&& this.getCurve() === loc.getCurve()
&& this.getPoint().isClose(loc.getPoint(),
&& (this.getPoint().isClose(loc.getPoint(),
/*#=*/Numerical.GEOMETRIC_EPSILON)
|| Math.abs(this.getParameter() - loc.getParameter())
< /*#=*/Numerical.CURVETIME_EPSILON)
&& (_ignoreOther
|| (!this._intersection && !loc._intersection
|| this._intersection && this._intersection.equals(
Expand Down

0 comments on commit 2a7d1c5

Please sign in to comment.