CreateFromPoints Method

BoundingBox.CreateFromPoints Method

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

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static BoundingBox CreateFromPoints (
         IEnumerable<Vector3> points


A list of points the BoundingBox should contain.

Return Value

The created BoundingBox.

Exception typeCondition
ArgumentExceptionThere are no points in points.
ArgumentNullException points is null.

Xbox 360, Windows XP SP2, Windows Vista

© 2016 Microsoft