AGI STK Graphics 11Send comments on this topic.
ComputeCircleCartographicWithGranularity 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 latitude, longitude, altitude.
Radius
The radius of the circle, in meters.
Granularity
The angular separation, in radians, of positions along the boundary.
Windows






Windows & Linux

Description

For convenience. Computes boundary positions for a circle on the specified centralBody using a Cartographic center. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting center to Cartesian and calling Compute Circle

Syntax

[Visual Basic .NET]
Public Function ComputeCircleCartographicWithGranularity( _
    ByVal CentralBody As String, _
    ByVal Center As System.Array, _
    ByVal Radius As Double, _
    ByVal Granularity As Double _
) As 
[C#]
public IAgStkGraphicsSurfaceShapesResult ComputeCircleCartographicWithGranularity(
    string CentralBody,
    System.Array Center,
    double Radius,
    double Granularity
);
[Managed C++]
public: IAgStkGraphicsSurfaceShapesResult^ ComputeCircleCartographicWithGranularity(
    String __gc ^ CentralBody,
    System::Array ^ Center,
    double Radius,
    double Granularity
);
[Java]
public IAgStkGraphicsSurfaceShapesResult computeCircleCartographicWithGranularity(
    String CentralBody,
    VariantArray Center,
    double Radius,
    double Granularity
);
[Unmanaged C++]
public: HRESULT ComputeCircleCartographicWithGranularity(
    BSTR CentralBody,
    SAFEARRAY * * Center,
    double Radius,
    double Granularity,
    IAgStkGraphicsSurfaceShapesResult ** ppRetVal
);

Parameters

CentralBody
The central body to compute the circle on.
Center
An array containing the center of the circle, in the order latitude, longitude, altitude.
Radius
The radius of the circle, in meters.
Granularity
The angular separation, in radians, of positions along the boundary.

See Also

Example

Shows the format of the Center parameter when computing a circle with a cartographic position.
[C#]
Array center = new object[] 
{ 
    39.88, 
    -75.25, 
    0.0 
};

IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeCircleCartographic(
    "Earth", 
    ref center, 
    10000);
Shows the format of the Center parameter when computing a circle with a cartographic position.
[Visual Basic .NET]
Dim center As Array = New Object() {39.88, -75.25, 0}

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