mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix a porting error in Line#getSide().
This commit is contained in:
parent
44670ebdd9
commit
c85ddf2abe
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ var Line = this.Line = Base.extend({
|
|||
if (ccw == 0) {
|
||||
ccw = v2.dot(v1);
|
||||
if (ccw > 0) {
|
||||
ccw = (v2 - v1).dot(v1);
|
||||
ccw = v2.subtract(v1).dot(v1);
|
||||
if (ccw < 0)
|
||||
ccw = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue