Rename ol.extent.segmentIntersects to intersectsSegment
This commit is contained in:
@@ -774,7 +774,7 @@ ol.extent.scaleFromCenter = function(extent, value) {
|
||||
* @param {ol.Coordinate} end Segment end coordinate.
|
||||
* @return {boolean} The segment intersects the extent.
|
||||
*/
|
||||
ol.extent.segmentIntersects = function(extent, start, end) {
|
||||
ol.extent.intersectsSegment = function(extent, start, end) {
|
||||
var intersects = false;
|
||||
var startRel = ol.extent.coordinateRelationship(extent, start);
|
||||
var endRel = ol.extent.coordinateRelationship(extent, end);
|
||||
|
||||
@@ -40,7 +40,7 @@ ol.geom.flat.intersectsextent.lineString =
|
||||
* `false` otherwise.
|
||||
*/
|
||||
function(point1, point2) {
|
||||
return ol.extent.segmentIntersects(extent, point1, point2);
|
||||
return ol.extent.intersectsSegment(extent, point1, point2);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user