replaced calls to addX and addY with calls to add. Simplify

git-svn-id: http://svn.openlayers.org/trunk/openlayers@51 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-16 18:32:11 +00:00
parent a2ef49dd9c
commit bd16aa9cdf
4 changed files with 11 additions and 34 deletions

View File

@@ -79,29 +79,6 @@ OpenLayers.Pixel.prototype = {
return ((d.w==0) && (d.h==0));
},
/** Return a new Pixel with this pixel's x&y augmented by
* the Size value passed in.
*
* @param {int} w
*
* @return {OpenLayers.Pixel}
*/
addX:function(w) {
return new OpenLayers.Pixel(this.x+w, this.y);
},
/** Return a new Pixel with this pixel's y augmented by
* the int value passed in.
*
* @param {int} h
*
* @return {OpenLayers.Pixel}
*/
addY:function(h) {
return new OpenLayers.Pixel(this.x, this.y+h);
},
/** Return a new Pixel with this pixel's x&y augmented by
* the int values passed in.
*