openlayers/openlayers — pull request #917 by Turbo87 (2013-03-23 16:09:09+00:00)
Title: Geometry: Added distanceSquaredToSegment() function

This function doesn't have the overhead of the Math.sqrt() and can be used more efficiently for comparisons.