@jdultra/ultra-globe / GeoUtils / vincentyDistance3D
Function: vincentyDistance3D()
vincentyDistance3D(
lon1,lat1,height1,lon2,lat2,height2):number
Defined in: utils/GeoUtils.d.ts:45
Calculates the 3D geodesic distance between two lon/lat/height points. The horizontal component uses Vincenty's inverse solution on WGS84 and the vertical component is composed with the height delta using Euclidean 3D distance.
Parameters
lon1
number
Longitude of the first point in degrees.
lat1
number
Latitude of the first point in degrees.
height1
number
Height of the first point in meters.
lon2
number
Longitude of the second point in degrees.
lat2
number
Latitude of the second point in degrees.
height2
number
Height of the second point in meters.
Returns
number
- Distance in kilometers.