From 2ebe4a18daa98311fa2a6f7c57dd26f68c1ec3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 21 Feb 2011 00:24:17 +0100 Subject: [PATCH] Add Point#isInside(). --- src/basic/Point.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/basic/Point.js b/src/basic/Point.js index 95cbd090..92165988 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -211,10 +211,9 @@ var Point = Base.extend({ ); }, - // TODO: Need to adapt Rectangle.java first - // isInside: function(rect) { - // return rect.contains(this); - // }, + isInside: function(rect) { + return rect.contains(this); + }, isClose: function(point, tolerance) { point = new Point(point);