BoundingSphere.CreateFromBoundingBox Method (Microsoft.Xna.Framework)

Creates the smallest BoundingSphere that can contain a specified BoundingBox.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public static BoundingSphere CreateFromBoundingBox(
	BoundingBox box

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.BoundingBox
The box to create the sphere from.

Return Value

Type: Microsoft.Xna.Framework.BoundingSphere
The new BoundingSphere.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop