STK Graphics PrimitivesSend comments on this topic.
SetPositionCartographic Method (IAgStkGraphicsModelPrimitive)
See Also
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.
Windows





Windows & Linux

Description

For convenience. Sets the Cartographic position of the model. This also sets Position.

Syntax

[Visual Basic .NET]
Public Sub SetPositionCartographic( _
    ByVal CentralBody As String, _
    ByVal Position As System.Array _
)
[C#]
public void SetPositionCartographic(
    string CentralBody,
    System.Array Position
);
[Managed C++]
public: void SetPositionCartographic(
    String __gc ^ CentralBody,
    System::Array ^ Position
);
[Unmanaged C++]
public: HRESULT SetPositionCartographic(
    BSTR CentralBody,
    SAFEARRAY * * Position
);
[Java]
public void setPositionCartographic(
    String CentralBody,
    AgSafeArray Position
);
[Python - STK API ]
def SetPositionCartographic(self, CentralBody:str, Position:list) -> None:

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.

See Also

Example

Shows the format of the Position parameter when updating a model.
[C#]
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]
Dim position As Array = New Object() {39.88, -75.25, 0}

model.SetPositionCartographic("Earth", position)
© 2024 Analytical Graphics, Inc. All Rights Reserved.