Stable geometry methods

This commit is contained in:
Tim Schaub
2015-04-02 13:13:40 +02:00
parent 419483face
commit d79abe7448
2 changed files with 6 additions and 7 deletions

View File

@@ -202,17 +202,18 @@ ol.geom.Geometry.prototype.applyTransform = goog.abstractMethod;
* @param {ol.Extent} extent Extent. * @param {ol.Extent} extent Extent.
* @return {boolean} `true` if the geometry and the extent intersect. * @return {boolean} `true` if the geometry and the extent intersect.
* @function * @function
* @api * @api stable
*/ */
ol.geom.Geometry.prototype.intersectsExtent = goog.abstractMethod; ol.geom.Geometry.prototype.intersectsExtent = goog.abstractMethod;
/** /**
* Translate the geometry. * Translate the geometry. This modifies the geometry coordinates in place. If
* instead you want a new geometry, first `clone()` this geometry.
* @param {number} deltaX Delta X. * @param {number} deltaX Delta X.
* @param {number} deltaY Delta Y. * @param {number} deltaY Delta Y.
* @function * @function
* @api * @api stable
*/ */
ol.geom.Geometry.prototype.translate = goog.abstractMethod; ol.geom.Geometry.prototype.translate = goog.abstractMethod;

View File

@@ -249,10 +249,8 @@ ol.geom.SimpleGeometry.prototype.applyTransform = function(transformFn) {
/** /**
* Translate the geometry. * @inheritDoc
* @param {number} deltaX Delta X. * @api stable
* @param {number} deltaY Delta Y.
* @api
*/ */
ol.geom.SimpleGeometry.prototype.translate = function(deltaX, deltaY) { ol.geom.SimpleGeometry.prototype.translate = function(deltaX, deltaY) {
var flatCoordinates = this.getFlatCoordinates(); var flatCoordinates = this.getFlatCoordinates();