STK Graphics PrimitivesSend comments on this topic.
ComputeEllipseCartographic Method (IAgStkGraphicsSurfaceShapesInitializer)
See Also
CentralBody
The central body to compute the ellipse on.
Center
An array containing the center of the ellipse, in the centralBody's fixed reference frame, in the order latitude, longitude, altitude.
MajorAxisRadius
The radius of the ellipse's major axis.
MinorAxisRadius
The radius of the ellipse's minor axis.
Bearing
An angle measured clockwise from north.
Windows





Windows & Linux

Description

For convenience. Computes boundary positions for an ellipse on the specified centralBody using a Cartographic center. This is equivalent to converting center to Cartesian and calling Compute Ellipse.

Syntax

[Visual Basic .NET]
Public Function ComputeEllipseCartographic( _
    ByVal CentralBody As String, _
    ByVal Center As System.Array, _
    ByVal MajorAxisRadius As Double, _
    ByVal MinorAxisRadius As Double, _
    ByVal Bearing As Double _
) As IAgStkGraphicsSurfaceShapesResult
[C#]
public IAgStkGraphicsSurfaceShapesResult ComputeEllipseCartographic(
    string CentralBody,
    System.Array Center,
    double MajorAxisRadius,
    double MinorAxisRadius,
    double Bearing
);
[Managed C++]
public: IAgStkGraphicsSurfaceShapesResult^ ComputeEllipseCartographic(
    String __gc ^ CentralBody,
    System::Array ^ Center,
    double MajorAxisRadius,
    double MinorAxisRadius,
    double Bearing
);
[Unmanaged C++]
public: HRESULT ComputeEllipseCartographic(
    BSTR CentralBody,
    SAFEARRAY * * Center,
    double MajorAxisRadius,
    double MinorAxisRadius,
    double Bearing,
    IAgStkGraphicsSurfaceShapesResult ** ppRetVal
);
[Java]
public IAgStkGraphicsSurfaceShapesResult computeEllipseCartographic(
    String CentralBody,
    AgSafeArray Center,
    double MajorAxisRadius,
    double MinorAxisRadius,
    double Bearing
);
[Python - STK API ]
def ComputeEllipseCartographic(self, CentralBody:str, Center:list, MajorAxisRadius:float, MinorAxisRadius:float, Bearing:float) -> "IAgStkGraphicsSurfaceShapesResult":

Parameters

CentralBody
The central body to compute the ellipse on.
Center
An array containing the center of the ellipse, in the centralBody's fixed reference frame, in the order latitude, longitude, altitude.
MajorAxisRadius
The radius of the ellipse's major axis.
MinorAxisRadius
The radius of the ellipse's minor axis.
Bearing
An angle measured clockwise from north.

See Also

Example

Shows the format of the Center parameter when computing an ellipse with a cartographic position.
[C#]
Array center = new object[] 
{ 
    38.85, 
    -77.04, 
    3000.0 
};

IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeEllipseCartographic(
    "Earth", 
    ref center, 
    45000, 
    30000, 
    45);
Shows the format of the Center parameter when computing an ellipse with a cartographic position.
[Visual Basic .NET]
Dim center As Array = New Object() {38.85, -77.04, 3000}

Dim shape As IAgStkGraphicsSurfaceShapesResult = sceneManager.Initializers.SurfaceShapes.ComputeEllipseCartographic("Earth", center, 45000, 30000, 45)
© 2024 Analytical Graphics, Inc. All Rights Reserved.