Fix typo in previous commit.

This commit is contained in:
Jürg Lehni 2015-09-05 09:56:37 +02:00
parent af355dc82c
commit 3fa385ac7c
2 changed files with 2 additions and 2 deletions

View file

@ -670,7 +670,7 @@ statics: {
h1 = new Point(v[2] - p1x, v[3] - p1y),
h2 = new Point(v[4] - p2x, v[5] - p2y);
return l.isZero() ? h1.isZero() && h2.isZero()
: l.isCollinear(h2) && l.isCollinear(h2);
: l.isCollinear(h1) && l.isCollinear(h2);
},
isFlatEnough: function(v, tolerance) {

View file

@ -575,7 +575,7 @@ var Segment = Base.extend(/** @lends Segment# */{
h1 = seg1._handleOut,
h2 = seg2._handleIn;
return l.isZero() ? h1.isZero() && h2.isZero()
: l.isCollinear(h2) && l.isCollinear(h2);
: l.isCollinear(h1) && l.isCollinear(h2);
},
isCollinear: function(seg1, seg2, seg3, seg4) {