Merge branch 'master' of github.com:paperjs/paper.js

This commit is contained in:
Jürg Lehni 2013-06-18 08:02:22 -07:00
commit 8cf09c08d9

View file

@ -813,11 +813,11 @@ statics: {
// k = (2/3) * h / a^2 // k = (2/3) * h / a^2
var line, point; var line, point;
if (offset === 0) { if (offset === 0) {
line = new Line(values[0], values[1], values[2], values[3], true); line = new Line(values[0], values[1], values[2], values[3]);
point = new Point(values[6]+values[4], values[7]+values[5]); point = new Point(values[4], values[5]);
} else { } else {
line = new Line(values[6], values[7], values[4], values[5], true); line = new Line(values[6], values[7], values[4], values[5]);
point = new Point(values[0]+values[2], values[1]+values[3]); point = new Point(values[2], values[3]);
} }
var a = line.getLength(), var a = line.getLength(),
h = line.getDistance(point); h = line.getDistance(point);