🐛 Fixed bug in Point.flipX() and Point.flipY
This commit is contained in:
parent
0db21000f0
commit
463052529d
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue