STK Graphics PrimitivesSend comments on this topic.
ComputeSectorCartographicWithGranularity Method (IAgStkGraphicsSurfaceShapesInitializer)
See Also
CentralBody
The central body to compute the sector on.
Center
An array containing the center of the sector, in the centralBody's fixed reference frame, in the order latitude, longitude, altitude.
InnerRadius
The inner radius of the sector.
OuterRadius
The outer radius of the sector.
StartBearing
An angle measured clockwise from north indicating the start bearing for the sector.
EndBearing
An angle measured clockwise from north indicating the end bearing for the sector.
Granularity
The angular separation of positions along the boundary.
Windows





Windows & Linux

Description

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

Syntax

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

Parameters

CentralBody
The central body to compute the sector on.
Center
An array containing the center of the sector, in the centralBody's fixed reference frame, in the order latitude, longitude, altitude.
InnerRadius
The inner radius of the sector.
OuterRadius
The outer radius of the sector.
StartBearing
An angle measured clockwise from north indicating the start bearing for the sector.
EndBearing
An angle measured clockwise from north indicating the end bearing for the sector.
Granularity
The angular separation of positions along the boundary.

See Also

Example

Shows the format of the Center parameter when computing a sector with a cartographic position.
[C#]
//The AngleUnit is expected to be in degrees
Array center = new object[] 
{ 
    0, 
    0, 
    25000 
};

IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeSectorCartographic(
    "Earth", 
    ref center,
    100,
    350,
    -30,
    30);
Shows the format of the Center parameter when computing a sector with a cartographic position.
[Visual Basic .NET]
'The AngleUnit is expected to be in degrees
Dim center As Array = New Object() {0, 0, 25000}

Dim shape As IAgStkGraphicsSurfaceShapesResult = sceneManager.Initializers.SurfaceShapes.ComputeSectorCartographic("Earth", center, 100, 350, -30, 30)
© 2024 Analytical Graphics, Inc. All Rights Reserved.