code: function(px) {
          var equals = false;
          if (px != null) {
              equals = ((this.x == px.x && this.y == px.y) ||
                        (isNaN(this.x) && isNaN(this.y) && isNaN(px.x) && isNaN(px.y)));
          }
          return equals;
      }
docs: APIMethod: equals
  Determine whether one pixel is equivalent to another
  
  Parameters:
  px - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an object with
  a 'x' and 'y' properties.
  
  Returns:
  {Boolean} The point passed in as parameter is equal to this. Note that
  if px passed in is null, returns false.