BoundingSphere.CreateFromBoundingBox Method (BoundingBox, BoundingSphere)
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 void CreateFromBoundingBox (
ref BoundingBox box,
out BoundingSphere result
)
Parameters
- box
The BoundingBox to create the BoundingSphere from. - result
[OutAttribute] The created BoundingSphere.
See Also
Reference
BoundingSphere Structure
BoundingSphere Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista