Implement Point#transform(matrix).

This commit is contained in:
Jonathan Puckey 2011-02-24 13:48:24 +01:00
parent 083822ff9d
commit f88fcd3049

View file

@ -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;