version 1.13, 2010/06/18 19:45:08
|
version 1.14, 2011/02/14 16:33:43
|
Line 84 function Size(w, h) {
|
Line 84 function Size(w, h) {
|
this.height = parseFloat(h); |
this.height = parseFloat(h); |
return this; |
return this; |
} |
} |
|
Size.prototype.copy = function() { |
|
// returns a copy of this Rectangle |
|
return new Size(this.width, this.height); |
|
} |
Size.prototype.toString = function() { |
Size.prototype.toString = function() { |
return this.width + "x" + this.height; |
return this.width + "x" + this.height; |
} |
} |
Line 97 function Position(x, y) {
|
Line 101 function Position(x, y) {
|
this.y = parseFloat(y); |
this.y = parseFloat(y); |
return this; |
return this; |
} |
} |
|
Position.prototype.copy = function() { |
|
// returns a copy of this Rectangle |
|
return new Rectangle(this.x, this.y); |
|
} |
Position.prototype.toString = function() { |
Position.prototype.toString = function() { |
return this.x + "," + this.y; |
return this.x + "," + this.y; |
} |
} |