BoundingSphere.BoundingSphere Method (Microsoft.Xna.Framework)

Constructs a bounding sphere with the specified center and radius.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.270)
  • C#
  • VB
  • F#
public BoundingSphere(
	Vector3 center, 
	float radius
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

center
Type: Microsoft.Xna.Framework.Vector3
The sphere center.
radius
Type: System.Single
The sphere radius.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web