STK UtilSend comments on this topic.
QueryPlanetocentricArray Method (IAgPosition)
See Also
Windows






Windows & Linux

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 
[C#]
public System.Array QueryPlanetocentricArray();
[Managed C++]
public: System::Array QueryPlanetocentricArray();
[Java]
public VariantArray queryPlanetocentricArray();
[Unmanaged C++]
public: HRESULT QueryPlanetocentricArray(
    SAFEARRAY * * ppRetVal
);

See Also

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]
set pos = facility.Position
planetocentricArray = pos.QueryPlanetocentricArray()
lat = planetocentricArray(0) 'Latitude
lon = planetocentricArray(1) 'Longitude
alt = planetocentricArray(2) 'Altitude
© 2020 Analytical Graphics, Inc. All Rights Reserved.