STK Graphics PrimitivesSend comments on this topic.
Initialize Method (IAgStkGraphicsBoundingSphereFactory)
See Also
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.
Windows





Windows & Linux

Description

Create instances of BoundingSphere.

Syntax

[Visual Basic .NET]
Public Function Initialize( _
    ByVal Center As System.Array, _
    ByVal Radius As Double _
) As IAgStkGraphicsBoundingSphere
[C#]
public IAgStkGraphicsBoundingSphere Initialize(
    System.Array Center,
    double Radius
);
[Managed C++]
public: IAgStkGraphicsBoundingSphere^ Initialize(
    System::Array ^ Center,
    double Radius
);
[Unmanaged C++]
public: HRESULT Initialize(
    SAFEARRAY * * Center,
    double Radius,
    IAgStkGraphicsBoundingSphere ** ppRetVal
);
[Java]
public IAgStkGraphicsBoundingSphere initialize(
    AgSafeArray Center,
    double Radius
);
[Python - STK API ]
def Initialize(self, Center:list, Radius:float) -> "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.

See Also

Example

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

Dim boundingSphere As IAgStkGraphicsBoundingSphere = sceneManager.Initializers.BoundingSphere.Initialize(center, 100)
© 2024 Analytical Graphics, Inc. All Rights Reserved.