BoundingSphere.CreateFromBoundingBox Method (BoundingBox%, BoundingSphere%)

Creates the smallest BoundingSphere that can contain a specified BoundingBox.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

public static void CreateFromBoundingBox(
	ref BoundingBox box,
	out BoundingSphere result
)

Parameters

box
Type: Microsoft.Xna.Framework.BoundingBox%
The BoundingBox to create the BoundingSphere from.
result
Type: Microsoft.Xna.Framework.BoundingSphere%
[OutAttribute] The created BoundingSphere.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: