mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Implement Point#transform(matrix).
This commit is contained in:
parent
083822ff9d
commit
f88fcd3049
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ var Point = Base.extend({
|
|||
return this.x == point.x && this.y == point.y;
|
||||
},
|
||||
|
||||
transform: function(matrix) {
|
||||
return matrix.transform(this);
|
||||
},
|
||||
|
||||
getDistance: function() {
|
||||
var point = Point.read(arguments);
|
||||
var px = point.x - this.x;
|
||||
|
|
Loading…
Reference in a new issue