mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Adjust precision of Curve#isFlatEnough() to cover rare edge cases.
This commit is contained in:
parent
af51edda34
commit
3101989974
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ statics: {
|
|||
vx = 3 * c2x - 2 * p2x - p1x,
|
||||
vy = 3 * c2y - 2 * p2y - p1y;
|
||||
return Math.max(ux * ux, vx * vx) + Math.max(uy * uy, vy * vy)
|
||||
< 16 * tolerance * tolerance;
|
||||
< 10 * tolerance * tolerance;
|
||||
},
|
||||
|
||||
getBounds: function(v) {
|
||||
|
|
Loading…
Reference in a new issue