From f88fcd3049fd5c36147c4fb03baf2fb3718ea8b1 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 24 Feb 2011 13:48:24 +0100 Subject: [PATCH] Implement Point#transform(matrix). --- src/basic/Point.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/basic/Point.js b/src/basic/Point.js index 5cf1a07c..4259a678 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -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;