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:
ahocevar
2013-11-04 20:54:07 +01:00
parent 1670b31142
commit e9b934d041
2 changed files with 10 additions and 10 deletions

View File

@@ -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');