Microsoft DirectX 9.0 SDK Update (October 2004)

Frame.CalculateBoundingSphere Method

Language:

Note: This documentation is preliminary and is subject to change.

Computes the bounding sphere of all meshes in the frame hierarchy.

Definition

Visual Basic .NET Public Shared Function CalculateBoundingSphere( _
    ByVal frameRoot As Frame, _
    ByRef center As Vector3 _
) As Single
C# public static float CalculateBoundingSphere(
    Frame frameRoot,
    out Vector3 center
);
Managed C++ public: static float CalculateBoundingSphere(
    Frame *frameRoot,
    Vector3 *center
);
JScript .NET public static function CalculateBoundingSphere(
    frameRoot : Frame,
    center : Vector3
) : float;

Parameters

frameRoot Microsoft.DirectX.Direct3D.Frame. A Frame object that represents the root node in the frame hierarchy.
center Microsoft.DirectX.Vector3. A Vector3 object that contains the center coordinates of the bounding sphere.

Return Value

System.Single . Floating-point value that represents the radius of the bounding sphere.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center