Skip to content

Commit

Permalink
Merge pull request openlayers#2177 from pagameba/geometry-api
Browse files Browse the repository at this point in the history
Add @todo api and describe ol.geom.Geometry funcs
  • Loading branch information
pagameba committed Jul 9, 2014
2 parents 4bcbda6 + 8d991bd commit f1bdaed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ol/geom/geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ goog.inherits(ol.geom.Geometry, ol.Observable);


/**
* Make a complete copy of the geometry.
* @function
* @return {ol.geom.Geometry} Clone.
* @api
*/
ol.geom.Geometry.prototype.clone = goog.abstractMethod;

Expand Down Expand Up @@ -151,16 +153,22 @@ ol.geom.Geometry.prototype.getExtent = goog.abstractMethod;


/**
* Create a simplified version of this geometry using the Douglas Peucker
* algorithm.
* @see http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm
* @function
* @param {number} squaredTolerance Squared tolerance.
* @return {ol.geom.Geometry} Simplified geometry.
* @api
*/
ol.geom.Geometry.prototype.getSimplifiedGeometry = goog.abstractMethod;


/**
* Get the type of this geometry.
* @function
* @return {ol.geom.GeometryType} Geometry type.
* @api
*/
ol.geom.Geometry.prototype.getType = goog.abstractMethod;

Expand Down

0 comments on commit f1bdaed

Please sign in to comment.