Be consistent in Numerical. EPSILON comparison rules.

This commit is contained in:
Jürg Lehni 2011-09-22 21:14:16 +02:00
parent 44e5c30436
commit 3397931bb2

View file

@ -765,7 +765,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
// Compare the line's squared length with EPSILON. If we're
// below, #intersect() will return null because of division
// by near-zero.
return [ line.vector.getLength(true) < Numerical.EPSILON
return [ line.vector.getLength(true) <= Numerical.EPSILON
? line.point.x
: xAxis.intersect(line).x ];
}