Frame.CalculateBoundingSphere Method

Language:

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

Definition

Visual Basic Public Shared Function CalculateBoundingSphere( _
    ByVal frameRoot As Frame, _
    ByRef center As Vector3 _
) As Single
C# public static float CalculateBoundingSphere(
    Frame frameRoot,
    out Vector3 center
);
C++ public:
static float CalculateBoundingSphere(
    FrameframeRoot,
    [Out] Vector3center
);
JScript 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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