Fixed the elusive crash when building.

This commit is contained in:
be5invis 2015-11-28 09:13:14 +08:00
parent 3dc8a35782
commit 1bd35cd36b
27 changed files with 492 additions and 430 deletions

12
support/point.js Normal file
View file

@ -0,0 +1,12 @@
var Point = function(x, y, onCurve, cubic, subdivided){
this.x = x;
this.y = y;
this.onCurve = onCurve || false;
this.subdivided = subdivided || false;
this.cubic = cubic || false;
}
Point.transformed = function(tfm, x, y, onCurve, cubic, subdivided) {
return new Point(x * tfm.xx + y * tfm.yx + tfm.x, x * tfm.xy + y * tfm.yy + tfm.y, onCurve, cubic, subdivided)
}
module.exports = Point