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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user