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 System.Array, _
   ByVal Radius As Double _
) As IAgStkGraphicsBoundingSphere

[C#]
public IAgStkGraphicsBoundingSphere Initialize(
ref System.Array Center,
double Radius
);

[Managed C++]
public: IAgStkGraphicsBoundingSphere^ Initialize(
System::Array ^^ Center,
double Radius
);

[Java]
public IAgStkGraphicsBoundingSphere initialize(
Object[] Center,
double Radius
);

[Unmanaged C++]
public: HRESULT Initialize(
SAFEARRAY ** Center,
double Radius,
IAgStkGraphicsBoundingSphere ** ReturnValue
);

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

STK Programming Interface 11.0.1