MCPcopy Create free account
hub / github.com/MapServer/MapServer / msDistancePointToPoint

Function msDistancePointToPoint

mapsearch.c:312–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310*/
311
312double msDistancePointToPoint(pointObj *a, pointObj *b)
313{
314 double d;
315
316 d = sqrt(msSquareDistancePointToPoint(a, b));
317
318 return(d);
319}
320
321/*
322** Quickly compute the square of the distance; avoids expensive sqrt() call on each invocation

Callers 3

msGetPolygonCentroidFunction · 0.85
pointObj_distanceToPointFunction · 0.85

Calls 1

Tested by

no test coverage detected