✅ Point and Attributes tests
This commit is contained in:
parent
1c4507c5bd
commit
7803d1b996
9 changed files with 2935 additions and 134 deletions
|
@ -71,11 +71,6 @@ Point.prototype.copy = function() {
|
|||
return new Point(this.x, this.y);
|
||||
};
|
||||
|
||||
/** checks whether this point is equal to that point */
|
||||
Point.prototype.equals = function(that) {
|
||||
return this.x === that.x && this.y === that.y ? true : false;
|
||||
};
|
||||
|
||||
/** Mirrors this point around X value of that point */
|
||||
Point.prototype.flipX = function(that) {
|
||||
return new Point(that.x + this.dx(that), that.y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue