AGI STK Graphics 11 Send comments on this topic.
ComputeCircle 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.





Description

Computes boundary positions for a circle on the specified centralBody with the specified center and radius. This is equivalent to calling Compute Circle with a granularity of 1 degree.

Syntax

[Visual Basic .NET]
Public Function ComputeCircle( _
   ByVal CentralBody As String, _
   ByRef Center As System.Array, _
   ByVal Radius As Double _
) As IAgStkGraphicsSurfaceShapesResult

[C#]
public IAgStkGraphicsSurfaceShapesResult ComputeCircle(
string CentralBody,
ref System.Array Center,
double Radius
);

[Managed C++]
public: IAgStkGraphicsSurfaceShapesResult^ ComputeCircle(
String __gc ^ CentralBody,
System::Array ^^ Center,
double Radius
);

[Java]
public IAgStkGraphicsSurfaceShapesResult computeCircle(
String CentralBody,
Object[] Center,
double Radius
);

[Unmanaged C++]
public: HRESULT ComputeCircle(
BSTR CentralBody,
SAFEARRAY ** Center,
double Radius,
IAgStkGraphicsSurfaceShapesResult ** ReturnValue
);

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.

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 All Rights Reserved.

STK Programming Interface 11.0.1