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)
Syntax
public static BoundingBox CreateFromPoints (
IEnumerable<Vector3> points
)
Parameters
- points
A list of points the BoundingBox should contain.
Return Value
The created BoundingBox.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | There are no points in points. |
ArgumentNullException | points is null. |
See Also
Reference
BoundingBox Structure
BoundingBox Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista