mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Move Point#equals() to other test methods.
This commit is contained in:
parent
217a2e6ecb
commit
638d768406
1 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue