AGI STK Graphics 11 Send comments on this topic.
ComputeCircleWithGranularity Method (IAgStkGraphicsSurfaceShapesInitializer)
See Also  Example
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, in meters.
Granularity
The angular separation, in radians, of positions along the boundary.

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, _
   ByRef Center() As Variant, _
   ByVal Radius As Double, _
   ByVal Granularity As Double _
) As 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, in meters.
Granularity
The angular separation, in radians, of positions along the boundary.

Example

Shows the format of the Center parameter when computing a circle.
[C#] Copy Code
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] Copy Code
Dim center As Array = New Object() {1247.87, -4739.74, 4067.77}

Dim shape As IAgStkGraphicsSurfaceShapesResult = sceneManager.Initializers.SurfaceShapes.ComputeCircle("Earth", center, 10000)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK 11.1 Programming Interface