AGI STK Graphics 11 Send comments on this topic.
Initialize Method (IAgStkGraphicsBoundingSphereFactory)
See Also  Example
Center
Specify a center of bounding sphere as a one-dimensional array with three elements corresponding to the (X,Y,Z) cartesian coordiantes.
Radius
Specify a radius of bounding sphere.

Description

Create instances of BoundingSphere.

Syntax

[Visual Basic .NET]
Public Function Initialize( _
   ByRef Center() As Variant, _
   ByVal Radius As Double _
) As IAgStkGraphicsBoundingSphere

Parameters

Center
Specify a center of bounding sphere as a one-dimensional array with three elements corresponding to the (X,Y,Z) cartesian coordiantes.
Radius
Specify a radius of bounding sphere.

Example

Shows the format of the Center parameter when creating a bounding sphere.
[C#] Copy Code
Array center = new object[] 

    1247.87, 
    -4739.74, 
    4067.77 
}; 
 
IAgStkGraphicsBoundingSphere boundingSphere = sceneManager.Initializers.BoundingSphere.Initialize(ref center, 100); 
 
Shows the format of the Center parameter when creating a bounding sphere.
[Visual Basic .NET] Copy Code
Dim center As Array = New Object() {1247.87, -4739.74, 4067.77}

Dim boundingSphere As IAgStkGraphicsBoundingSphere = sceneManager.Initializers.BoundingSphere.Initialize(center, 100)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK 11.1 Programming Interface