mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Standard pgindent run for 8.1.
This commit is contained in:
@ -67,7 +67,7 @@ geo_distance(Point *pt1, Point *pt2)
|
||||
longdiff = TWO_PI - longdiff;
|
||||
|
||||
sino = sqrt(sin(fabs(lat1 - lat2) / 2.) * sin(fabs(lat1 - lat2) / 2.) +
|
||||
cos(lat1) * cos(lat2) * sin(longdiff / 2.) * sin(longdiff / 2.));
|
||||
cos(lat1) * cos(lat2) * sin(longdiff / 2.) * sin(longdiff / 2.));
|
||||
if (sino > 1.)
|
||||
sino = 1.;
|
||||
*resultp = 2. * EARTH_RADIUS * asin(sino);
|
||||
|
Reference in New Issue
Block a user