AGI STK Graphics 11 Send comments on this topic.
SetPositionCartographic Method (IAgStkGraphicsModelPrimitive)
See Also  Example
CentralBody
The central body the positions are defined on.
Position
An array containing the new Cartographic position of the model provided in the order latitude, longitude, altitude.





Description

For convenience. Sets the Cartographic position of the model. Longitude and latitude are in radians, and altitude is in meters. This also sets Position.

Syntax

[Visual Basic .NET]
Public Sub SetPositionCartographic( _
   ByVal CentralBody As String, _
   ByRef Position As System.Array _
) 

[C#]
public void SetPositionCartographic(
string CentralBody,
ref System.Array Position
);

[Managed C++]
public: void SetPositionCartographic(
String __gc ^ CentralBody,
System::Array ^^ Position
);

[Java]
public  setPositionCartographic(
String CentralBody,
Object[] Position
);

[Unmanaged C++]
public: HRESULT SetPositionCartographic(
BSTR CentralBody,
SAFEARRAY ** Position
);

Parameters

CentralBody
The central body the positions are defined on.
Position
An array containing the new Cartographic position of the model provided in the order latitude, longitude, altitude.

Remarks

centralBody is used to convert the position to Cartesian.

See Position for a full discussion.

Example

Shows the format of the Position parameter when updating a model.
[C#] Copy Code
Array position = new object[] 

    39.88
    -75.25
    0 
}; 
 
model.SetPositionCartographic( 
    "Earth"
    ref position); 
 

Shows the format of the Position parameter when updating a model.
[Visual Basic .NET] Copy Code
Dim position As Array = New Object() {39.88, -75.25, 0}

model.SetPositionCartographic("Earth", position)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1