BoundingSphere.CreateFromPoints Method

Creates a BoundingSphere that can contain a specified list of points.

Syntax

'Declaration
Public Shared Function CreateFromPoints ( _
         points As IEnumerable(Of Vector3) _
) As BoundingSphere 
public static BoundingSphere CreateFromPoints (
         IEnumerable<Vector3> points
)
public:
static BoundingSphere CreateFromPoints(
         IEnumerable<Vector3> points
)

Parameters

Return Value

Type: BoundingSphere
The created BoundingSphere.

Exceptions

Exception type Condition
ArgumentException There are no points in points.
ArgumentNullException points is null.

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