mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-06 11:09:33 -04:00
Rearrange linear curve conditions.
This commit is contained in:
parent
c513a24f46
commit
c7ab32c501
1 changed files with 4 additions and 3 deletions
|
@ -734,9 +734,10 @@ statics: {
|
|||
if (bounds1.touches(bounds2)) {
|
||||
// See if both curves are flat enough to be treated as lines, either
|
||||
// because they have no control points at all, or are "flat enough"
|
||||
if (this.isLinear(v1) && this.isLinear(v2)
|
||||
|| this.isFlatEnough(v1, /*#=*/ Numerical.TOLERANCE)
|
||||
&& this.isFlatEnough(v2, /*#=*/ Numerical.TOLERANCE)) {
|
||||
if ((this.isLinear(v1)
|
||||
|| this.isFlatEnough(v1, /*#=*/ Numerical.TOLERANCE))
|
||||
&& (this.isLinear(v2)
|
||||
|| this.isFlatEnough(v2, /*#=*/ Numerical.TOLERANCE))) {
|
||||
/*#*/ if (options.debug) {
|
||||
new Path.Line({
|
||||
from: [v1[0], v1[1]],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue