Ets_Nt_Coord_Lat_Long_To_Subnet_Convert()
Note: Requires OPNET Development Kit
Abstract
Converts the coordinates of a location in the world coordinate system to the local coordinate system of a specified subnet.
Syntax
Ets_Nt_Coord_Lat_Long_To_Subnet_Convert (subnet_hndl, latitude, longitude, global_altitude, x_ptr, y_ptr, local_altitude_ptr)
| Argument | Type | Description |
|---|---|---|
subnet_hndl |
EtsT_Obj_Handle |
Subnet of interest |
latitude |
double |
Latitude of location to convert |
longitude |
double |
Longitude of location to convert |
global_altitude |
double |
Altitude of location to convert |
x_ptr |
double * |
Location to be filled with the x-position in subnet coordinates |
y_ptr |
double * |
Location to be filled with the y-position in subnet coordinates |
local_altitude_ptr |
double * |
Location to be filled with the altitude in subnet coordinates |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if the conversion is successful; EtsC_Compcode_Failure otherwise.
Header
ets_api_nt.h
Details
The global altitude is in meters. The local altitude is in the subnet units, or meters if the subnet units are degrees or arc-seconds.