Additional ndocs for geometry.move.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9072 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -156,11 +156,13 @@ OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry, {
|
||||
|
||||
/**
|
||||
* APIMethod: move
|
||||
* Moves a point in place
|
||||
* Moves a geometry by the given displacement along positive x and y axes.
|
||||
* This modifies the position of the geometry and clears the cached
|
||||
* bounds.
|
||||
*
|
||||
* Parameters:
|
||||
* x - {Float}
|
||||
* y - {Float}
|
||||
* x - {Float} Distance to move geometry in positive x direction.
|
||||
* y - {Float} Distance to move geometry in positive y direction.
|
||||
*/
|
||||
move: function(x, y) {
|
||||
this.x = this.x + x;
|
||||
|
||||
Reference in New Issue
Block a user