oms_geo_bearing_compute()

Abstract

Determines a North bearing at the source node such that the corresponding great circle around the earth passes through both the source and destination.

Syntax

oms_geo_bearing_compute (src_lat, src_long, dest_lat, dest_long)

Argument Type Description
src_lat double latitude of the source location
src_long double longitude of the source location
dest_lat double latitude of the destination location
dest_long double longitude of the destination location

Return Type

double

North bearing at source location for great circle passing through both source and destination locations. If source and destination are the same, or if they are diametrically opposed, the return value will be zero.

Details

The North bearing is an angle in degrees between 0 (inclusive) and 360 (exclusive), such that 0 indicates a northern heading and 90 indicates an eastern heading. To see an example of a North bearing, see Chapter 7 “Network Domain” on page 292.

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