Skip to content

Commit 0860cdd

Browse files
committed
Clean up code a bit.
1 parent 367aa8e commit 0860cdd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/path/Curve.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,12 +1393,13 @@ new function() { // Scope for methods that require numerical integration
13931393
var point = Curve.evaluate(vcr, t, 0);
13941394
// We do have a point on the infinite line. Check if it falls on
13951395
// the line *segment*.
1396-
if (point.x >= 0 && point.x <= rl2x){
1397-
// Interpolate for the parameter for the intersection on line
1396+
if (point.x >= 0 && point.x <= rl2x) {
1397+
// Interpolate the parameter for the intersection on line.
13981398
var tl = point.x / rl2x,
13991399
t1 = flip ? tl : t,
14001400
t2 = flip ? t : tl;
1401-
addLocation(locations, curve1, t1, Curve.evaluate(v1, t1, 0),
1401+
addLocation(locations,
1402+
curve1, t1, Curve.evaluate(v1, t1, 0),
14021403
curve2, t2, Curve.evaluate(v2, t2, 0));
14031404
}
14041405
}

0 commit comments

Comments
 (0)