This topic has not yet been rated - Rate this topic

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)

public static BoundingSphere CreateFromPoints (
         IEnumerable<Vector3> points
)

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.
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ