Add Point#isInside().

This commit is contained in:
Jürg Lehni 2011-02-21 00:24:17 +01:00
parent 04d2ed29c6
commit 2ebe4a18da

View file

@ -211,10 +211,9 @@ var Point = Base.extend({
); );
}, },
// TODO: Need to adapt Rectangle.java first isInside: function(rect) {
// isInside: function(rect) { return rect.contains(this);
// return rect.contains(this); },
// },
isClose: function(point, tolerance) { isClose: function(point, tolerance) {
point = new Point(point); point = new Point(point);