Add ol.geom.Point#intersectsExtent

This commit is contained in:
Éric Lemoine
2014-09-17 07:57:19 +02:00
parent a740f32e4d
commit 612cf70560

View File

@@ -93,6 +93,16 @@ ol.geom.Point.prototype.getType = function() {
};
/**
* @inheritDoc
* @api
*/
ol.geom.Point.prototype.intersectsExtent = function(extent) {
return ol.extent.containsXY(extent,
this.flatCoordinates[0], this.flatCoordinates[1]);
};
/**
* @param {ol.Coordinate} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.