Handle impression in Curve#getCrossings(), causing wrong results when handling circles.

This commit is contained in:
Jürg Lehni 2012-12-15 01:52:23 -08:00
parent 9a7f72e163
commit a36d244eb1

View file

@ -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++;
}