Move containsCoordinate to ol.geom.Geometry

This commit is contained in:
Tom Payne
2013-11-11 18:05:05 +01:00
parent b60956baf6
commit aa70030a43
3 changed files with 20 additions and 24 deletions
+1 -12
View File
@@ -27,18 +27,7 @@ goog.inherits(ol.geom.MultiPolygon, ol.geom.Geometry);
/**
* @param {ol.Coordinate} coordinate Coordinate.
* @return {boolean} Contains coordinate.
*/
ol.geom.MultiPolygon.prototype.containsCoordinate = function(coordinate) {
return this.containsXY(coordinate[0], coordinate[1]);
};
/**
* @param {number} x X.
* @param {number} y Y.
* @return {boolean} Contains (x, y).
* @inheritDoc
*/
ol.geom.MultiPolygon.prototype.containsXY = function(x, y) {
return ol.geom.flatLinearRingssContainsXY(