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).

prg_geo.h

Details

If any latitude or longitude argument is invalid, 0.0 is returned.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com