diff --git a/src/point.js b/src/point.js index 7a14dcf08a7..20504f7ff9d 100644 --- a/src/point.js +++ b/src/point.js @@ -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 */