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
)

Parameters

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 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

ADD
Show:
© 2016 Microsoft