function legacy_gmap_polyutil_dist in GMap Module 7.2
Distance in two dimensions.
√((x1-x0)^2 + (y1-y0)^2)
1 call to legacy_gmap_polyutil_dist()
- legacy_gmap_polyutil_point_line_dist in tests/
inc/ gmap_polyutil.inc - Distance between a point and a line segment.
File
- tests/
inc/ gmap_polyutil.inc, line 69 - Encoded polyline utilities.
Namespace
tests\incCode
function legacy_gmap_polyutil_dist($p1, $p2) {
return sqrt(pow($p2[0] - $p1[0], 2) + pow($p2[1] - $p1[1], 2));
}