Merge pull request #740 from twpayne/rtree-clean-ups

R-tree clean-ups
This commit is contained in:
Tom Payne
2013-05-28 06:14:57 -07:00
2 changed files with 623 additions and 576 deletions

View File

@@ -111,6 +111,18 @@ ol.extent.createOrUpdate = function(minX, maxX, minY, maxY, extent) {
};
/**
* Empties extent in place.
* @param {ol.Extent} extent Extent.
* @return {ol.Extent} Extent.
*/
ol.extent.empty = function(extent) {
extent[0] = extent[2] = Infinity;
extent[1] = extent[3] = -Infinity;
return extent;
};
/**
* @param {ol.Extent} extent1 Extent 1.
* @param {ol.Extent} extent2 Extent 2.

File diff suppressed because it is too large Load Diff