BoundingSphere.CreateFromBoundingBox Method (BoundingBox)

Creates the smallest BoundingSphere that can contain a specified BoundingBox.

Syntax

'Declaration
Public Shared Function CreateFromBoundingBox ( _
         box As BoundingBox _
) As BoundingSphere 
public static BoundingSphere CreateFromBoundingBox (
         BoundingBox box
)
public:
static BoundingSphere CreateFromBoundingBox(
         BoundingBox box
)

Parameters

Return Value

Type: BoundingSphere
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