Creates a new instance of
BoundingSphere.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
public BoundingSphere (
Vector3 center,
float radius
)
Parameters
- center
- Center point of the sphere.
- radius
- Radius of the sphere.
| Exception type | Condition |
|---|
| ArgumentException |
radius is less than zero. radius must be greater than or equal to zero.
|
Reference
Xbox 360, Windows XP SP2, Windows Vista, Zune