(float X1,float Y1,float X2,float Y2) { float dx = X1 - X2; float dy = Y1 - Y2; float sx = (float)cos( Y1 * 0.01745329252f); return ((float)sqrt(dx * dx * sx * sx + dy * dy) * 111195.0f); }
float GetDistance(float X1,float Y1,float X2,float Y2) { float dx = X1 - X2; float dy = Y1 - Y2; return (float)sqrt(dx * dx + dy * dy); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)