mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix typo in previous commit.
This commit is contained in:
parent
af355dc82c
commit
3fa385ac7c
2 changed files with 2 additions and 2 deletions
|
@ -670,7 +670,7 @@ statics: {
|
||||||
h1 = new Point(v[2] - p1x, v[3] - p1y),
|
h1 = new Point(v[2] - p1x, v[3] - p1y),
|
||||||
h2 = new Point(v[4] - p2x, v[5] - p2y);
|
h2 = new Point(v[4] - p2x, v[5] - p2y);
|
||||||
return l.isZero() ? h1.isZero() && h2.isZero()
|
return l.isZero() ? h1.isZero() && h2.isZero()
|
||||||
: l.isCollinear(h2) && l.isCollinear(h2);
|
: l.isCollinear(h1) && l.isCollinear(h2);
|
||||||
},
|
},
|
||||||
|
|
||||||
isFlatEnough: function(v, tolerance) {
|
isFlatEnough: function(v, tolerance) {
|
||||||
|
|
|
@ -575,7 +575,7 @@ var Segment = Base.extend(/** @lends Segment# */{
|
||||||
h1 = seg1._handleOut,
|
h1 = seg1._handleOut,
|
||||||
h2 = seg2._handleIn;
|
h2 = seg2._handleIn;
|
||||||
return l.isZero() ? h1.isZero() && h2.isZero()
|
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) {
|
isCollinear: function(seg1, seg2, seg3, seg4) {
|
||||||
|
|
Loading…
Reference in a new issue