code: function(geom) {
          var equals = false;
          if (geom != null) {
              equals = ((this.x == geom.x && this.y == geom.y) ||
                        (isNaN(this.x) && isNaN(this.y) && isNaN(geom.x) && isNaN(geom.y)));
          }
          return equals;
      }
docs: APIMethod: equals
  Determine whether another geometry is equivalent to this one.  Geometries
  are considered equivalent if all components have the same coordinates.
  
  Parameters:
  geom - {<OpenLayers.Geometry.Point>} The geometry to test.
  
  Returns:
  {Boolean} The supplied geometry is equivalent to this geometry.