From 463052529d641532ff51ac7f42c265d8e29bd9b8 Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Tue, 14 Aug 2018 16:17:43 +0200 Subject: [PATCH] :bug: Fixed bug in Point.flipX() and Point.flipY --- src/point.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */