BoundingSphere.CreateFromPoints Method
Creates a BoundingSphere that can contain a specified list of points.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Parameters
- points
- Type: IEnumerable<Vector3>
List of points the BoundingSphere must contain.
Return Value
The created BoundingSphere.
| Exception type | Condition |
|---|---|
| ArgumentException | There are no points in points. |
| ArgumentNullException | points is null. |