Fixed the elusive crash when building.
This commit is contained in:
parent
3dc8a35782
commit
1bd35cd36b
27 changed files with 492 additions and 430 deletions
12
support/point.js
Normal file
12
support/point.js
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue