AGI STK Graphics 11 Send comments on this topic.
ComputeSectorWithGranularity Method (IAgStkGraphicsSurfaceShapesInitializer)
See Also  Example
CentralBody
The central body to compute the sector on.
Center
An array containing the center of the sector (in the order x, y, z), in the centralBody's fixed reference frame.
InnerRadius
The inner radius of the sector, in meters.
OuterRadius
The outer radius of the sector, in meters.
StartBearing
An angle, in radians, measured clockwise from north indicating the start bearing for the sector.
EndBearing
An angle, in radians, measured clockwise from north indicating the end bearing for the sector.
Granularity
The angular separation, in radians, of positions along the boundary.





Description

Computes boundary positions for a sector on the specified centralBody.

Syntax

[Visual Basic .NET]
Public Function ComputeSectorWithGranularity( _
   ByVal CentralBody As String, _
   ByRef 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 ComputeSectorWithGranularity(
string CentralBody,
ref System.Array Center,
double InnerRadius,
double OuterRadius,
double StartBearing,
double EndBearing,
double Granularity
);

[Managed C++]
public: IAgStkGraphicsSurfaceShapesResult^ ComputeSectorWithGranularity(
String __gc ^ CentralBody,
System::Array ^^ Center,
double InnerRadius,
double OuterRadius,
double StartBearing,
double EndBearing,
double Granularity
);

[Java]
public IAgStkGraphicsSurfaceShapesResult computeSectorWithGranularity(
String CentralBody,
Object[] Center,
double InnerRadius,
double OuterRadius,
double StartBearing,
double EndBearing,
double Granularity
);

[Unmanaged C++]
public: HRESULT ComputeSectorWithGranularity(
BSTR CentralBody,
SAFEARRAY ** Center,
double InnerRadius,
double OuterRadius,
double StartBearing,
double EndBearing,
double Granularity,
IAgStkGraphicsSurfaceShapesResult ** ReturnValue
);

Parameters

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

Example

Shows the format of the Center parameter when computing a sector.
[C#] Copy Code
//The AngleUnit is expected to be in degrees 
Array center = new object[] 

    6403.14
    0
    0 
}; 
 
IAgStkGraphicsSurfaceShapesResult shape = sceneManager.Initializers.SurfaceShapes.ComputeSector( 
    "Earth"
    ref center, 
    100
    350
    -30
    30); 
 

Shows the format of the Center parameter when computing a sector.
[Visual Basic .NET] Copy Code
'The AngleUnit is expected to be in degrees
Dim center As Array = New Object() {6403.14, 0, 0}

Dim shape As IAgStkGraphicsSurfaceShapesResult = sceneManager.Initializers.SurfaceShapes.ComputeSector("Earth", center, 100, 350, -30, 30)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1