mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Handle impression in Curve#getCrossings(), causing wrong results when handling circles.
This commit is contained in:
parent
9a7f72e163
commit
a36d244eb1
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
|||
// a change of direction:
|
||||
if (t < Numerical.TOLERANCE && Curve.evaluate(
|
||||
this.getPrevious().getValues(), 1, 1).y
|
||||
* Curve.evaluate(vals, t, 1).y >= 0)
|
||||
* Curve.evaluate(vals, t, 1).y >= Numerical.TOLERANCE)
|
||||
continue;
|
||||
crossings++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue