BoundingSphere Constructor

Creates a new instance of BoundingSphere.

Syntax

'Declaration
Public Sub New ( _
         center As Vector3, _
         radius As Single _
)
public BoundingSphere (
         Vector3 center,
         float radius
)
public:
BoundingSphere(
         Vector3 center,
         float radius
)

Parameters

  • center
    Type: Vector3
    Center point of the sphere.
  • radius
    Type: Single
    Radius of the sphere.

Exceptions

Exception type Condition
ArgumentException radius is less than zero. radius must be greater than or equal to zero.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

BoundingSphere Structure
BoundingSphere Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone