mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Shorten code statement.
This commit is contained in:
parent
1302df0cb8
commit
f47af12b0d
1 changed files with 1 additions and 3 deletions
|
@ -155,9 +155,7 @@ var Line = Base.extend(/** @lends Line# */{
|
|||
ccw = v2x * vx + v2y * vy; // ccw = v2.dot(v1);
|
||||
if (ccw > 0) {
|
||||
// ccw = v2.subtract(v1).dot(v1);
|
||||
v2x -= vx;
|
||||
v2y -= vy;
|
||||
ccw = v2x * vx + v2y * vy;
|
||||
ccw = (v2x - vx) * vx + (v2y - vy) * vy;
|
||||
if (ccw < 0)
|
||||
ccw = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue