mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Compare points instead of curve time paramters for better precision and reliability.
This commit is contained in:
parent
e36319b71a
commit
812ac63e60
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue