STK Graphics PrimitivesSend comments on this topic.
ComputeEllipseWithGranularity Method (IAgStkGraphicsSurfaceShapesInitializer)
See Also
CentralBody
The central body to compute the ellipse on.
Center
An array containing the center of the ellipse (in the order x, y, z), in the centralBody's fixed reference frame.
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.
Granularity
The angular separation of positions along the boundary.
Windows





Windows & Linux

Description

Computes boundary positions for an ellipse on the specified centralBody.

Syntax

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

Parameters

CentralBody
The central body to compute the ellipse on.
Center
An array containing the center of the ellipse (in the order x, y, z), in the centralBody's fixed reference frame.
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.
Granularity
The angular separation of positions along the boundary.

See Also

Example

Shows the format of the Center parameter when computing an ellipse.
[C#]
Array center = new object[] 
{ 
    1639.46, 
    -7123.95, 
    5861.21 
};

IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeEllipse(
    "Earth", 
    ref center, 
    45000, 
    30000, 
    45);
Shows the format of the Center parameter when computing an ellipse.
[Visual Basic .NET]
Dim center As Array = New Object() {1639.46, -7123.95, 5861.21}

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