Ets_Nt_Trajectory_Position_Get()
Abstract
Gets the position of an object at a given time in the trajectory.
Syntax
Ets_Nt_Trajectory_Position_Get (trajectory_name, long_offset, lat_offset, alt_offset, time_offset, long_out, lat_out, alt_out)
| Argument | Type | Description |
|---|---|---|
trajectory_name |
const char* |
Name of the trajectory. |
long_offset |
double |
Starting longitude of trajectory. |
lat_offset |
double |
Starting latitude of trajectory. |
alt_offset |
double |
Starting altitude of trajectory. |
time_offset |
double |
Starting time of trajectory. |
long_out |
double * |
Address of variable where resulting longitude value will be stored |
lat_out |
double * |
Address of variable where resulting latitude value will be stored |
alt_out |
double * |
Address of variable where resulting altitude value will be stored |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if trajectory exists and is in units of degrees, EtsC_Compcode_Failure otherwise.
Header
ets_api_nt.h
Details
Returns the location of an object at time time_offset if it was traveling along a trajectory identified by trajectory_name, and if the initial starting point of the object was long_offset,lat_offset,alt_offset.
Note: If the trajectory is an absolute trajectory—meaning it is defined with a starting longitude, latitude, and altitude—the long_offset, lat_offset, and alt_offset arguments don't affect the output of this function.