AGI STK Util 11 Send comments on this topic.
QueryPlanetocentricArray Method (IAgPosition)
See Also  Example





Description

This method is similar to QueryPlanetocentric but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order Latitude(index 0), Longitude(index 1) and Altitude(index 2).

Syntax

[Visual Basic .NET]
Public Function QueryPlanetocentricArray() As System.Array

[C#]
public System.Array QueryPlanetocentricArray();

[Managed C++]
public: System::Array QueryPlanetocentricArray();

[Java]
public Object[] queryPlanetocentricArray();

[Unmanaged C++]
public: HRESULT QueryPlanetocentricArray(
SAFEARRAY ** Array
);

Example

This example shows how to get the planetocentric position of a facility using the QueryPlanetocentricArray in vbscript.
Retrieving planetocentric coordinates of a facility [VBScript] Copy Code
set pos = facility.Position
planetocentricArray = pos.QueryPlanetocentricArray()
lat = planetocentricArray(0) 'Latitude
lon = planetocentricArray(1) 'Longitude
alt = planetocentricArray(2) 'Altitude

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1