GM_CalcDistance |
Calculates the great-circle distance in meters between two points. The points can either be specified as lat/lon values or in the current projection.
GM_Error_t32 GM_CalcDistance ( double aFromX, // IN: start X/longitude coordinate double aFromY, // IN: start Y/latitude coordinate double aToX, // IN: stop X/longitude coordinate double aToY, // IN: stop Y/latitude coordinate boolean aLatLon, // IN: TRUE - coordinates are lat/lon, FALSE - coordaintes are in the current projection? double* aDist // OUT: distance in meters between the points );
Copyright © 2020 Blue Marble Geographics. All Rights Reserved