prg_geo_distances_to_degrees_convert()

Abstract

Converts a given distance on the Earth from linear units to degrees.

Syntax

prg_geo_distances_to_degrees_convert (longitude, latitude, x_dist, y_dist, units, long_degrees, lat_degrees)
Argument Type Description
longitude const double longitude of the first point (ignored)
latitude const double latitude of the first point
x_dist const double x distance
y_dist const double y distance
units const PrgT_Distance_Units_Type type of units to convert from (one of the values in Table 3 Geo Package Symbolic Constants)
long_degrees double * area to hold x distance expressed as degrees of longitude
lat_degrees double * area to hold y distance expressed as degrees of latitude

Return Type

void

No return value.

prg_geo.h

Details

For a given latitude, this function converts an x,y distance (in meters, kilometers, feet, or miles) to the corresponding longitudinal,latitudinal distance (in degrees). This calculation accounts for the fact that the linear size of a longitudinal degree varies depending on latitude. Because this function does not deal with absolute positions, the longitude argument is not needed and is ignored.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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