BoundingSphere.CreateFromBoundingBox Method (BoundingBox)

Creates the smallest BoundingSphere that can contain a specified BoundingBox.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public static BoundingSphere CreateFromBoundingBox (
         BoundingBox box
)

Parameters

Return Value

The created BoundingSphere.

See Also

Reference

BoundingSphere Structure
BoundingSphere Members
Microsoft.Xna.Framework Namespace

Programming Guide

How to: Position the Camera to View All Objects in a Scene

Platforms

Xbox 360, Windows XP SP2, Windows Vista