BoundingBox.CreateFromPoints Method

Creates the smallest BoundingBox that will contain a group of points.

Syntax

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

Parameters

Return Value

Type: BoundingBox
The created BoundingBox.

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

BoundingBox Structure
BoundingBox Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone