Ovis_Entity_Position_Get()

Abstract

Returns the 3D geocentric and geodetic position of an Ovis entity.

Syntax

Ovis_Entity_Position_Get (obj_ptr, geocentric_pos_ptr, geodetic_pos_ptr)
Argument Type Description
obj_ptr OvisT_Entity * Ovis entity
geocentric_pos_ptr OvisT_3D_Position * Geocentric position of the entity (X, Y, Z)
geodetic_pos_ptr OvisT_3D_Position * Geodetic position of the entity (latitude, longitude, altitude)

Return Type

OvisT_Compcode

OvisC_Compcode_Success if the entity is valid; OvisC_Compcode_Failure otherwise.

ovis_entity.h

Details

This function returns the 3D geocentric (X, Y, Z) and geodetic (latitude, longitude, altitude) position of the Ovis entity.

Note that either position argument can be set to OPC_NIL if you are not interested in the corresponding type of position. If both position arguments are provided, they must be addresses of distinct variables.

Example

OvisT_3D_Position      geodetic, geocentric;
OvisT_Entity         * ent_ptr;

/* .. entity created at some point */

Ovis_Entity_Position_Get (ent_ptr, &geocentric, &geodetic);

Errors

  • Position argument is NIL.

Reference

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