STK Graphics PrimitivesSend comments on this topic.
ComputeCircleWithGranularity Method (IAgStkGraphicsSurfaceShapesInitializer)
See Also
CentralBody
The central body to compute the circle on.
Center
An array containing the center of the circle (in the order x, y, z), in the centralBody's fixed reference frame.
Radius
The radius of the circle.
Granularity
The angular separation of positions along the boundary.
Windows





Windows & Linux

Description

Computes boundary positions for a circle on the specified centralBody with the specified center, radius and granularity.

Syntax

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

Parameters

CentralBody
The central body to compute the circle on.
Center
An array containing the center of the circle (in the order x, y, z), in the centralBody's fixed reference frame.
Radius
The radius of the circle.
Granularity
The angular separation of positions along the boundary.

See Also

Example

Shows the format of the Center parameter when computing a circle.
[C#]
Array center = new object[] 
{ 
    1247.87, 
    -4739.74, 
    4067.77 
};

IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeCircle(
    "Earth", 
    ref center, 
    10000);
Shows the format of the Center parameter when computing a circle.
[Visual Basic .NET]
Dim center As Array = New Object() {1247.87, -4739.74, 4067.77}

Dim shape As IAgStkGraphicsSurfaceShapesResult = sceneManager.Initializers.SurfaceShapes.ComputeCircle("Earth", center, 10000)
© 2024 Analytical Graphics, Inc. All Rights Reserved.