1
0
Fork 0

Point and Attributes tests

This commit is contained in:
Joost De Cock 2018-08-11 19:17:39 +02:00
parent 1c4507c5bd
commit 7803d1b996
9 changed files with 2935 additions and 134 deletions

View file

@ -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);