Let closestOnSegment return nothing more than a coordinate
Since we do not use the 'along' property anywhere, and the resulting array returned by closestOnSegment could cause trouble when working with 3d coodinates, now only the closest point is returned, and the squared distance to the segment is calculated by squaredDistanceToSegment instead.
This commit is contained in:
@@ -5,7 +5,6 @@ goog.require('goog.events.EventType');
|
||||
goog.require('ol.CoordinateArray');
|
||||
goog.require('ol.coordinate');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.geom');
|
||||
goog.require('ol.geom.Geometry');
|
||||
goog.require('ol.geom.GeometryEvent');
|
||||
goog.require('ol.geom.GeometryType');
|
||||
|
||||
Reference in New Issue
Block a user