mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Merge branch 'master' of github.com:paperjs/paper.js
This commit is contained in:
commit
8cf09c08d9
1 changed files with 4 additions and 4 deletions
|
@ -813,11 +813,11 @@ statics: {
|
|||
// k = (2/3) * h / a^2
|
||||
var line, point;
|
||||
if (offset === 0) {
|
||||
line = new Line(values[0], values[1], values[2], values[3], true);
|
||||
point = new Point(values[6]+values[4], values[7]+values[5]);
|
||||
line = new Line(values[0], values[1], values[2], values[3]);
|
||||
point = new Point(values[4], values[5]);
|
||||
} else {
|
||||
line = new Line(values[6], values[7], values[4], values[5], true);
|
||||
point = new Point(values[0]+values[2], values[1]+values[3]);
|
||||
line = new Line(values[6], values[7], values[4], values[5]);
|
||||
point = new Point(values[2], values[3]);
|
||||
}
|
||||
var a = line.getLength(),
|
||||
h = line.getDistance(point);
|
||||
|
|
Loading…
Reference in a new issue