prg_geo_lat_long_distance_get()
Abstract
Computes the straight line distance between two points.
Syntax
prg_geo_lat_long_distance_get (point1_lat, point1_long, point1_alt, point2_lat, point2_long, point1_alt)
| Argument | Type | Description |
|---|---|---|
point1_lat |
double |
latitude of first point |
point1_long |
double |
longitude of first point |
point1_alt |
double |
altitude of first point |
point2_lat |
double |
latitude of second point |
point2_long |
double |
longitude of second point |
point2_alt |
double |
altitude of second point |
Return Type
double
Straight line distance between two points (in meters).
Header
prg_geo.h
Details
If any latitude or longitude argument is invalid, 0.0 is returned.