mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Clean up code.
This commit is contained in:
parent
7f245974e6
commit
9fe1ff951a
1 changed files with 5 additions and 5 deletions
|
@ -665,11 +665,11 @@ statics: {
|
|||
});
|
||||
/*#*/ }
|
||||
// See if the parametric equations of the lines interesct.
|
||||
var line1 = new Line(v1[0], v1[1], v1[6], v1[7], false),
|
||||
line2 = new Line(v2[0], v2[1], v2[6], v2[7], false),
|
||||
// Filter out beginnings of the curves, to avoid duplicate
|
||||
// solutions where curves join.
|
||||
point = line1.intersect(line2, true, false);
|
||||
var point = new Line(v1[0], v1[1], v1[6], v1[7], false)
|
||||
.intersect(new Line(v2[0], v2[1], v2[6], v2[7], false),
|
||||
// Filter out beginnings of the curves, to avoid
|
||||
// duplicate solutions where curves join.
|
||||
true, false);
|
||||
if (point)
|
||||
// Passing null for parameter leads to lazy determination of
|
||||
// parameter values in CurveLocation#getParameter() only
|
||||
|
|
Loading…
Reference in a new issue