Frame.CalculateBoundingSphere(Frame,Vector3) Method (Microsoft.DirectX.Direct3D)
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 SingleC# public static float CalculateBoundingSphere(
Frame frameRoot,
out Vector3 center
);C++ public:
static float CalculateBoundingSphere(
Frame^ frameRoot,
[Out] Vector3% center
);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
The method call is invalid. For example, a method's parameter might contain an invalid value.
Microsoft Direct3D could not allocate sufficient memory to complete the call.