Move Point#equals() to other test methods.

This commit is contained in:
Jürg Lehni 2011-05-15 20:26:20 +01:00
parent 217a2e6ecb
commit 638d768406

View file

@ -97,11 +97,6 @@ var Point = this.Point = Base.extend({
return Point.create(-this.x, -this.y);
},
equals: function(point) {
point = Point.read(arguments);
return this.x == point.x && this.y == point.y;
},
transform: function(matrix) {
return matrix._transformPoint(this);
},
@ -254,6 +249,11 @@ var Point = this.Point = Base.extend({
return center ? point.add(center) : point;
},
equals: function(point) {
point = Point.read(arguments);
return this.x == point.x && this.y == point.y;
},
/**
* Checks whether the point is inside the boundaries of the rectangle.
*