1
0
Fork 0

🐛 Fixed bug in Point.flipX() and Point.flipY

This commit is contained in:
Joost De Cock 2018-08-14 16:17:43 +02:00
parent 0db21000f0
commit 463052529d

View file

@ -73,12 +73,12 @@ Point.prototype.copy = function() {
/** Mirrors this point around X value of that point */
Point.prototype.flipX = function(that) {
return new Point(that.x + this.dx(that), that.y);
return new Point(that.x + this.dx(that), this.y);
};
/** Mirrors this point around Y value of that point */
Point.prototype.flipY = function(that) {
return new Point(that.x, that.y + this.dy(that));
return new Point(this.x, that.y + this.dy(that));
};
/** Shifts this point distance in the deg direction */