Lines Matching refs:that

3957     add: function (that) {  argument
3958 return new Point(this.x + that.x, this.y + that.y);
3966 addEquals: function (that) { argument
3967 this.x += that.x;
3968 this.y += that.y;
3997 subtract: function (that) { argument
3998 return new Point(this.x - that.x, this.y - that.y);
4006 subtractEquals: function (that) { argument
4007 this.x -= that.x;
4008 this.y -= that.y;
4077 eq: function (that) { argument
4078 return (this.x === that.x && this.y === that.y);
4086 lt: function (that) { argument
4087 return (this.x < that.x && this.y < that.y);
4095 lte: function (that) { argument
4096 return (this.x <= that.x && this.y <= that.y);
4105 gt: function (that) { argument
4106 return (this.x > that.x && this.y > that.y);
4114 gte: function (that) { argument
4115 return (this.x >= that.x && this.y >= that.y);
4124 lerp: function (that, t) { argument
4125 return new Point(this.x + (that.x - this.x) * t, this.y + (that.y - this.y) * t);
4133 distanceFrom: function (that) { argument
4134 var dx = this.x - that.x,
4135 dy = this.y - that.y;
4144 midPointFrom: function (that) { argument
4145 return new Point(this.x + (that.x - this.x)/2, this.y + (that.y - this.y)/2);
4153 min: function (that) { argument
4154 return new Point(Math.min(this.x, that.x), Math.min(this.y, that.y));
4162 max: function (that) { argument
4163 return new Point(Math.max(this.x, that.x), Math.max(this.y, that.y));
4188 setFromPoint: function (that) { argument
4189 this.x = that.x;
4190 this.y = that.y;
4197 swap: function (that) { argument
4200 this.x = that.x;
4201 this.y = that.y;
4202 that.x = x;
4203 that.y = y;