Frame.CalculateBoundingSphere Method |
Language: |
Computes the bounding sphere of all meshes in the frame hierarchy.
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;
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.
System.Single
Floating-point value that represents the radius of the bounding sphere.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. OutOfMemoryException 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