Additional ndocs for geometry.equals.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9074 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2009-03-17 18:31:46 +00:00
parent b505822fd1
commit 5497e3a272
2 changed files with 17 additions and 17 deletions

View File

@@ -331,15 +331,16 @@ OpenLayers.Geometry.Collection = OpenLayers.Class(OpenLayers.Geometry, {
return best;
},
/**
/**
* APIMethod: equals
* Tests for equivalent geometries
*
* Determine whether another geometry is equivalent to this one. Geometries
* are considered equivalent if all components have the same coordinates.
*
* Parameters:
* geometry - {<OpenLayers.Geometry>}
* geom - {<OpenLayers.Geometry>} The geometry to test.
*
* Returns:
* {Boolean} The coordinates are equivalent
* {Boolean} The supplied geometry is equivalent to this geometry.
*/
equals: function(geometry) {
var equivalent = true;

View File

@@ -123,18 +123,17 @@ OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry, {
},
/**
* APIMethod: equals
*
* Parameters:
* xy - {<OpenLayers.Geometry>}
*
* Returns:
* {Boolean} Boolean value indicating whether the passed-in
* {<OpenLayers.Geometry>} object has the same components as this
* note that if ll passed in is null, returns false
*
*/
equals:function(geom) {
* 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.
*/
equals: function(geom) {
var equals = false;
if (geom != null) {
equals = ((this.x == geom.x && this.y == geom.y) ||