Stable geometry methods
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user