mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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;
|
return this.x == point.x && this.y == point.y;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
transform: function(matrix) {
|
||||||
|
return matrix.transform(this);
|
||||||
|
},
|
||||||
|
|
||||||
getDistance: function() {
|
getDistance: function() {
|
||||||
var point = Point.read(arguments);
|
var point = Point.read(arguments);
|
||||||
var px = point.x - this.x;
|
var px = point.x - this.x;
|
||||||
|
|
Loading…
Reference in a new issue