mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Be consistent in Numerical. EPSILON comparison rules.
This commit is contained in:
parent
44e5c30436
commit
3397931bb2
1 changed files with 1 additions and 1 deletions
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue