BoundingSphere.CreateFromBoundingBox Method (BoundingBox, BoundingSphere)
Creates the smallest BoundingSphere that can contain a specified BoundingBox.
Syntax
'Declaration
Public Shared Sub CreateFromBoundingBox ( _
ref box As BoundingBox, _
out result As BoundingSphere _
)
public static void CreateFromBoundingBox (
ref BoundingBox box,
out BoundingSphere result
)
public:
static void CreateFromBoundingBox(
ref BoundingBox box,
out BoundingSphere result
)
Parameters
- box
Type: BoundingBox
The BoundingBox to create the BoundingSphere from. - result
Type: BoundingSphere
[OutAttribute] The created BoundingSphere.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
BoundingSphere Structure
BoundingSphere Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone