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 3.8.0.339)
  • C#
  • VB
  • F#
public static void CreateFromBoundingBox(
	BoundingBox box, 
	out BoundingSphere result
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

box
Type: Microsoft.Xna.Framework.BoundingBox
The box to create the sphere from.
result
Type: out Microsoft.Xna.Framework.BoundingSphere
The new BoundingSphere as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web